예제 #1
0
        private void NotifyNewPlayerToClients(string playerIdentifier, string playerName)
        {
            var responseMessage = networkService.CreateServerMessage();

            responseMessage.Write(NEW_PLAYER);
            responseMessage.Write(playerIdentifier);
            responseMessage.Write(playerName);
            networkService.SendToClients(responseMessage, DeliveryMethod.ReliableOrdered);
        }
예제 #2
0
        public void SDestroy()
        {
            NetworkService networkService = (Owner.Scene as NetworkedScene).networkService;

            var message = networkService.CreateServerMessage();

            message.Write(NetworkedScene.DESTROY_WO);
            message.Write(Owner.Name);
            networkService.SendToClients(message, WaveEngine.Networking.Messages.DeliveryMethod.ReliableOrdered);
        }