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); }
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); }