private CoopClient() { m_Session = new GameSession(new SaveData()); m_NetManager = new LiteNetManagerClient(m_Session); GameState = new CoopGameState(); Events = new CoopEvents(); Events.OnGameLoaded.AddNonSerializedListener(this, Init); }
public CoopClient() { Session = new GameSession(new GameData()); Session.OnConnectionDestroyed += ConnectionDestroyed; m_NetManager = new LiteNetManagerClient(Session); GameState = new CoopGameState(); Events = new CoopEvents(); Events.OnGameLoaded.AddNonSerializedListener(this, Init); }
public Client() { Session = new GameSession(Mock.Of <ISaveData>()); Manager = new LiteNetManagerClient(Session); }
public Client(ISaveData worldData) { Session = new GameSession(worldData); Manager = new LiteNetManagerClient(Session); }