void Start() { clientNetworkManager = ClientNetworkManager.Instance; clientGameManager = ClientGameManager.Instance; clientEntityManager = ClientEntityManager.Instance; uiManager = UIManager.Instance; rtsCamera = FindObjectOfType <RTSCamera>(); }
private void Start() { clientGameManager = ClientGameManager.Instance; if (!ClientNetworkManager.Instance.IsConnectedToServer) { OpenConnectionMenu(); } }
void Awake() { if (Instance == null) { Instance = this; } else { Destroy(gameObject); } }
private void Awake() { if (instance == null) { instance = this; } else { Debug.LogError("ERROR: ClientGameManager already initialized. Remove redundant ClientGameManagers"); } }
void TryStartClient() { if (!IsClient) { return; } _clientManager = new ClientGameManager(); _clientManager.Create(); _clientManager.Init(); _clientManager.PostInit(); _clientManager.Load(); _clientManager.PostLoad(); }
void TryStartClient() { if (!IsClient) { return; } _clientManager = new ClientGameManager(); _clientManager.Create(); _clientManager.Init(); _clientManager.PostInit(); _clientManager.Load(); _clientManager.PostLoad(); StartCoroutine(ClientRareUpdate()); }
// ctor public GameViewModel(IFrameNavigationService navigationService) { _navigationService = navigationService; _gameManager = new ClientGameManager(); _gameManager.GetBoardState(); InitializeBoard(); InitializeBoardCheckers(); CreateTitle(); RollDiceCommand = new RelayCommand(RollDice); ChooseCheckerCommand = new RelayCommandWithParams <string>(MoveChecker); _gameManager.RegisterGetDiceEvent(GetRivalDiceResult); _gameManager.RegisterBoardUpdatedEvent(UpdateGameBoard); }
/* * public AsynchronousSocketListener() * { * } */ public static void StartListening(ClientGameManager i_client) { p_client = i_client; // Data buffer for incoming data. byte[] bytes = new Byte[1024]; // Establish the local endpoint for the socket. // The DNS name of the computer // running the listener is "host.contoso.com". IPHostEntry ipHostInfo = //Dns.GetHostEntry(Dns.GetHostName()); Dns.Resolve(Dns.GetHostName()); IPAddress ipAddress = ipHostInfo.AddressList[0]; IPEndPoint localEndPoint = new IPEndPoint(ipAddress, port); // Create a TCP/IP socket. Socket listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); // Bind the socket to the local endpoint and listen for incoming connections. try { listener.Bind(localEndPoint); listener.Listen(100); while (true) { // Set the event to nonsignaled state. allDone.Reset(); // Start an asynchronous socket to listen for connections. listener.BeginAccept( new AsyncCallback(AcceptData), listener); // Wait until a connection is made before continuing. allDone.WaitOne(); } } catch (Exception e) { //Console.WriteLine(e.ToString()); listener.Close(); } }
private void Start() { clientGameManager = ClientGameManager.Instance; }
public ClientChunkManager(ClientGameManager owner) : base(owner) { }
public ClientDynamicEntityController(ClientGameManager owner) : base(owner) { }
public ClientPlayerEntityManager(ClientGameManager owner) : base(owner) { }
public ClientWorldStateController(ClientGameManager owner) : base(owner) { }
public ClientUIManager(ClientGameManager owner) : base(owner) { }
private void Start() { serverGameManager = ServerGameManager.Instance; clientGameManager = ClientGameManager.Instance; }
public ClientController(ClientGameManager owner) : base(owner) { }
public ClientInputManager(ClientGameManager owner) : base(owner) { }