Beispiel #1
0
        private void OnGamePropertiesUpdate(INetworkConnection con, Packet msg)
        {
            PacketGamePropertiesUpdateNotification prop = msg as PacketGamePropertiesUpdateNotification;

            if (prop != null)
            {
                OnGamePropertiesUpdate(con, prop);
            }
        }
Beispiel #2
0
        public void SendGamePropertiesUpdateToPlayers(Guid bagId, Property[] ps)
        {
            PacketGamePropertiesUpdateNotification note = new PacketGamePropertiesUpdateNotification();

            note.Properties    = ps;
            note.PropertyBagId = bagId;
            note.TheGame       = GameID;

            BroadcastToPlayersInGame(note, true);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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());
        }
Beispiel #5
0
        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());
        }