public static Vector3 ToV3(this Vector3Info vector3)
 {
     return(new Vector3()
     {
         x = vector3.X,
         y = vector3.Y,
         z = vector3.Z
     });
 }
Esempio n. 2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCBadvellyOperateBack _inst = (GCBadvellyOperateBack)_base;

            while (true)
            {
                uint tag = input.ReadTag();
                switch (tag)
                {
                case 0:
                {
                    return(_inst);
                }

                case  8: {
                    _inst.Type = input.ReadInt32();
                    break;
                }

                case  16: {
                    _inst.ScenceId = input.ReadInt32();
                    break;
                }

                case  26: {
                    Vector3Info subBuilder = new Vector3Info();
                    input.ReadMessage(subBuilder);
                    _inst.TargetPos = subBuilder;
                    break;
                }

                case  32: {
                    _inst.LangueId = input.ReadInt32();
                    break;
                }

                case  40: {
                    _inst.Result = input.ReadInt32();
                    break;
                }

                case  48: {
                    _inst.MissionId = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Esempio n. 3
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCTrackEnemy _inst = (GCTrackEnemy)_base;

            while (true)
            {
                uint tag = input.ReadTag();
                switch (tag)
                {
                case 0:
                {
                    return(_inst);
                }

                case  18: {
                    Vector3Info subBuilder = new Vector3Info();
                    input.ReadMessage(subBuilder);
                    _inst.TargetPos = subBuilder;
                    break;
                }
                }
            }
            return(_inst);
        }
Esempio n. 4
0
 public void SetTargetPos(Vector3Info value)
 {
     hasTargetPos = true;
     targetPos_   = value;
 }