private void OnGamePropertiesUpdate(INetworkConnection con, Packet msg) { PacketGamePropertiesUpdateNotification prop = msg as PacketGamePropertiesUpdateNotification; if (prop != null) { OnGamePropertiesUpdate(con, prop); } }
public void SendGamePropertiesUpdateToPlayers(Guid bagId, Property[] ps) { PacketGamePropertiesUpdateNotification note = new PacketGamePropertiesUpdateNotification(); note.Properties = ps; note.PropertyBagId = bagId; note.TheGame = GameID; BroadcastToPlayersInGame(note, true); }
public void SendGamePropertiesUpdateToPlayer(ServerCharacterInfo toon, Guid bagId, Property[] ps, bool removeProperties, bool compress, bool encrypt) { PacketGamePropertiesUpdateNotification note = new PacketGamePropertiesUpdateNotification(); note.Properties = ps; note.PropertyBagId = bagId; note.TheGame = GameID; note.IsCompressed = compress; note.IsEncrypted = encrypt; note.Remove = removeProperties; SendPacketToPlayer(toon, note); }
protected virtual void OnGamePropertiesUpdate(INetworkConnection con, PacketGamePropertiesUpdateNotification msg) { if (msg.PropertyBagId == Properties.ID) { if (msg.Remove) { Properties.RemoveProperties(msg.Properties); } else { Properties.UpdateWithValues(msg.Properties); } } Log.LogMsg(">>> Game Properties Updated: " + msg.Properties.Length.ToString()); }