Exemplo n.º 1
0
 public int __decode(byte[] binData, ref int pos)
 {
     this.entityProps = new EntityPropArray();
     this.entityProps.__decode(binData, ref pos);
     this.entityInfos = new EntityInfoArray();
     this.entityInfos.__decode(binData, ref pos);
     this.entityMoves = new EntityMoveArray();
     this.entityMoves.__decode(binData, ref pos);
     return(pos);
 }
Exemplo n.º 2
0
        public System.Collections.Generic.List <byte> __encode()
        {
            var data = new System.Collections.Generic.List <byte>();

            if (this.entityProps == null)
            {
                this.entityProps = new EntityPropArray();
            }
            data.AddRange(this.entityProps.__encode());
            if (this.entityInfos == null)
            {
                this.entityInfos = new EntityInfoArray();
            }
            data.AddRange(this.entityInfos.__encode());
            if (this.entityMoves == null)
            {
                this.entityMoves = new EntityMoveArray();
            }
            data.AddRange(this.entityMoves.__encode());
            return(data);
        }
Exemplo n.º 3
0
 public SceneRefreshNotice(EntityPropArray entityProps, EntityInfoArray entityInfos, EntityMoveArray entityMoves)
 {
     this.entityProps = entityProps;
     this.entityInfos = entityInfos;
     this.entityMoves = entityMoves;
 }
Exemplo n.º 4
0
 public SceneRefreshNotice()
 {
     entityProps = new EntityPropArray();
     entityInfos = new EntityInfoArray();
     entityMoves = new EntityMoveArray();
 }