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); }
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); }
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); }
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); }
public SceneRefreshNotice(EntityPropArray entityProps, EntityInfoArray entityInfos, EntityMoveArray entityMoves) { this.entityProps = entityProps; this.entityInfos = entityInfos; this.entityMoves = entityMoves; }
public SceneRefreshNotice() { entityProps = new EntityPropArray(); entityInfos = new EntityInfoArray(); entityMoves = new EntityMoveArray(); }
public RefreshSpaceNotice(EntityInfoArray entitys, EntityReportArray reports, double serverTime) { this.entitys = entitys; this.reports = reports; this.serverTime = serverTime; }
public double serverTime; //服务器当前时间 public RefreshSpaceNotice() { entitys = new EntityInfoArray(); reports = new EntityReportArray(); serverTime = 0.0; }
public RefreshSceneEntitysNotice(EntityInfoArray entitys, double serverTime) { this.entitys = entitys; this.serverTime = serverTime; }
public double serverTime; //服务器当前时间 public RefreshSceneEntitysNotice() { entitys = new EntityInfoArray(); serverTime = 0.0; }