Exemplo n.º 1
0
        private void OnGamePropertiesUpdate(INetworkConnection con, Packet msg)
        {
            PacketGamePropertiesUpdateNotification prop = msg as PacketGamePropertiesUpdateNotification;

            if (prop != null)
            {
                OnGamePropertiesUpdate(con, prop);
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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());
        }
Exemplo n.º 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());
        }