Exemplo n.º 1
0
        public override void Serialize(IDataWriter writer)
        {
            base.Serialize(writer);
            writer.WriteShort(((short)(m_followingCharactersLook.Count)));
            int followingCharactersLookIndex;

            for (followingCharactersLookIndex = 0; (followingCharactersLookIndex < m_followingCharactersLook.Count); followingCharactersLookIndex = (followingCharactersLookIndex + 1))
            {
                IndexedEntityLook objectToSend = m_followingCharactersLook[followingCharactersLookIndex];
                objectToSend.Serialize(writer);
            }
        }
Exemplo n.º 2
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            var followingCharactersLookCount = reader.ReadUShort();

            FollowingCharactersLook = new List <IndexedEntityLook>();
            for (var followingCharactersLookIndex = 0; followingCharactersLookIndex < followingCharactersLookCount; followingCharactersLookIndex++)
            {
                var objectToAdd = new IndexedEntityLook();
                objectToAdd.Deserialize(reader);
                FollowingCharactersLook.Add(objectToAdd);
            }
        }
Exemplo n.º 3
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            int followingCharactersLookCount = reader.ReadUShort();
            int followingCharactersLookIndex;

            m_followingCharactersLook = new System.Collections.Generic.List <IndexedEntityLook>();
            for (followingCharactersLookIndex = 0; (followingCharactersLookIndex < followingCharactersLookCount); followingCharactersLookIndex = (followingCharactersLookIndex + 1))
            {
                IndexedEntityLook objectToAdd = new IndexedEntityLook();
                objectToAdd.Deserialize(reader);
                m_followingCharactersLook.Add(objectToAdd);
            }
        }