Esempio n. 1
0
        public static void StatedElementUpdatedMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            StatedElementUpdatedMessage msg = (StatedElementUpdatedMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            account.MapData.UpdateStatedElement(msg.StatedElement);
        }
Esempio n. 2
0
        public static void StatedElementUpdatedMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            StatedElementUpdatedMessage msg = (StatedElementUpdatedMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            if (account.Map.StatedElements.Count > 0)
            {
                account.Map.StatedElements[msg.statedElement.elementId].State = (uint)msg.statedElement.elementState;
            }
        }