Beispiel #1
0
 public int __decode(byte[] binData, ref int pos)
 {
     this.entitys = new EntityInfoArray();
     this.entitys.__decode(binData, ref pos);
     this.serverTime = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     return(pos);
 }
Beispiel #2
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);
 }
Beispiel #3
0
        public System.Collections.Generic.List <byte> __encode()
        {
            var data = new System.Collections.Generic.List <byte>();

            if (this.entitys == null)
            {
                this.entitys = new EntityInfoArray();
            }
            data.AddRange(this.entitys.__encode());
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.serverTime));
            return(data);
        }
Beispiel #4
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);
        }
Beispiel #5
0
 public SceneRefreshNotice(EntityPropArray entityProps, EntityInfoArray entityInfos, EntityMoveArray entityMoves)
 {
     this.entityProps = entityProps;
     this.entityInfos = entityInfos;
     this.entityMoves = entityMoves;
 }
Beispiel #6
0
 public SceneRefreshNotice()
 {
     entityProps = new EntityPropArray();
     entityInfos = new EntityInfoArray();
     entityMoves = new EntityMoveArray();
 }
Beispiel #7
0
 public RefreshSpaceNotice(EntityInfoArray entitys, EntityReportArray reports, double serverTime)
 {
     this.entitys    = entitys;
     this.reports    = reports;
     this.serverTime = serverTime;
 }
Beispiel #8
0
 public double serverTime; //服务器当前时间
 public RefreshSpaceNotice()
 {
     entitys    = new EntityInfoArray();
     reports    = new EntityReportArray();
     serverTime = 0.0;
 }
Beispiel #9
0
 public RefreshSceneEntitysNotice(EntityInfoArray entitys, double serverTime)
 {
     this.entitys    = entitys;
     this.serverTime = serverTime;
 }
Beispiel #10
0
 public double serverTime; //服务器当前时间
 public RefreshSceneEntitysNotice()
 {
     entitys    = new EntityInfoArray();
     serverTime = 0.0;
 }