Skip to content

Instantly share code, notes, and snippets.

@ChristianHohlfeld
Created October 4, 2018 20:39
Show Gist options
  • Save ChristianHohlfeld/fdaf011d7a37a207da02d050eeb9ae97 to your computer and use it in GitHub Desktop.
Save ChristianHohlfeld/fdaf011d7a37a207da02d050eeb9ae97 to your computer and use it in GitHub Desktop.
GameAdapter.cpp
//
// GameAdapter.cpp
// UDPTEST
//
// Created by Christian Hohlfeld on 16.09.18.
//
#include <stdio.h>
#include "GameAdapter.h"
#include "GameServer.h"
void GameAdapter::OnServerClientConnected(int clientIndex) {
if (m_game_serverRef != NULL) {
m_game_serverRef->ClientConnected(clientIndex);
}
}
void GameAdapter::OnServerClientDisconnected(int clientIndex) {
if (m_game_serverRef != NULL) {
m_game_serverRef->ClientDisconnected(clientIndex);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment