Exemple #1
0
 public MoveReq(ulong eid, ushort action, EPosition clientPos, EPositionArray waypoints, ulong follow)
 {
     this.eid       = eid;
     this.action    = action;
     this.clientPos = clientPos;
     this.waypoints = waypoints;
     this.follow    = follow;
 }
Exemple #2
0
 public MoveReq()
 {
     eid       = 0;
     action    = 0;
     clientPos = new EPosition();
     waypoints = new EPositionArray();
     follow    = 0;
 }
Exemple #3
0
 public EntityMove(ulong eid, EPosition position, ushort action, double realSpeed, double expectSpeed, EPositionArray waypoints, ulong follow)
 {
     this.eid         = eid;
     this.position    = position;
     this.action      = action;
     this.realSpeed   = realSpeed;
     this.expectSpeed = expectSpeed;
     this.waypoints   = waypoints;
     this.follow      = follow;
 }
Exemple #4
0
 public ulong follow;             //eid
 public EntityMove()
 {
     eid         = 0;
     position    = new EPosition();
     action      = 0;
     realSpeed   = 0.0;
     expectSpeed = 0.0;
     waypoints   = new EPositionArray();
     follow      = 0;
 }
Exemple #5
0
 public int __decode(byte[] binData, ref int pos)
 {
     this.eid       = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos);
     this.action    = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos);
     this.clientPos = new EPosition();
     this.clientPos.__decode(binData, ref pos);
     this.waypoints = new EPositionArray();
     this.waypoints.__decode(binData, ref pos);
     this.follow = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos);
     return(pos);
 }
Exemple #6
0
 public int __decode(byte[] binData, ref int pos)
 {
     this.eid      = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos);
     this.position = new EPosition();
     this.position.__decode(binData, ref pos);
     this.action      = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos);
     this.realSpeed   = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.expectSpeed = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.waypoints   = new EPositionArray();
     this.waypoints.__decode(binData, ref pos);
     this.follow = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos);
     return(pos);
 }
Exemple #7
0
        public System.Collections.Generic.List <byte> __encode()
        {
            var data = new System.Collections.Generic.List <byte>();

            data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.eid));
            data.AddRange(Proto4z.BaseProtoObject.encodeUI16(this.action));
            if (this.clientPos == null)
            {
                this.clientPos = new EPosition();
            }
            data.AddRange(this.clientPos.__encode());
            if (this.waypoints == null)
            {
                this.waypoints = new EPositionArray();
            }
            data.AddRange(this.waypoints.__encode());
            data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.follow));
            return(data);
        }