public void AddNetUpdateToAllplayers(NetUpdate netUpdate) { foreach (var c in _newNetUpdates) { AddNetUpdateToPlayer(c.Key, netUpdate); } }
public void AddNetUpdateToAllExceptPlayer(long playerID, NetUpdate netUpdate) { foreach (var c in _newNetUpdates) { if (c.Key != playerID) { AddNetUpdateToPlayer(c.Key, netUpdate); } } }
protected void AddMessage(IConctract message, SendOptions sendOption) { var netUpdate = new NetUpdate(message, sendOption); AddMessage(netUpdate); }
protected void AddMessage(NetUpdate netUpdate) { UpdateEvents.Add(netUpdate); _hasUpdatedEvent = true; }
public void AddNetUpdateToAllExceptPlayer(long playerID, IConctract message, SendOptions sendOption) { var netUpdate = new NetUpdate(message, sendOption); AddNetUpdateToAllExceptPlayer(playerID, netUpdate); }
public void AddNetUpdateToPlayer(long playerID, NetUpdate netUpdate) { _newNetUpdates[playerID].Add(netUpdate); }
public void AddNetUpdateToAllplayers(IConctract message, SendOptions sendOption) { var netUpdate = new NetUpdate(message, sendOption); AddNetUpdateToAllplayers(netUpdate); }