Beispiel #1
0
        }                                      // The map identification number where the player is in.

        public void parse(MumbleLink mumbleLink)
        {
            unsafe
            {
                fixed(MumbleLink.MemoryMap *_data = &mumbleLink.data)
                {
                    this.x            = (float)(_data->fAvatarPosition[0]) * InchesToMeter;
                    this.y            = (float)(_data->fAvatarPosition[1]) * InchesToMeter;
                    this.z            = (float)(_data->fAvatarPosition[2]) * InchesToMeter;
                    this.camRotationX = (double)(_data->fCameraFront[0]);
                    this.camRotationY = (double)(_data->fCameraFront[2]);
                    this.rotationX    = (double)(_data->fAvatarFront[0]);
                    this.rotationY    = (double)(_data->fAvatarFront[2]);
                    this.mapID        = (int)_data->context[28] + ((int)_data->context[29] * 256);
                    this.worldID      = (int)_data->context[36] + ((int)_data->context[37] * 256);
                }
            }
        }
Beispiel #2
0
 public void parse(MumbleLink mumbleLink)
 {
     unsafe
     {
         fixed (MumbleLink.MemoryMap* _data = &mumbleLink.data)
         {
             this.x = (float)(_data->fAvatarPosition[0]) * InchesToMeter;
             this.y = (float)(_data->fAvatarPosition[1]) * InchesToMeter;
             this.z = (float)(_data->fAvatarPosition[2]) * InchesToMeter;
             this.camRotationX = (double)(_data->fCameraFront[0]);
             this.camRotationY = (double)(_data->fCameraFront[2]);
             this.rotationX = (double)(_data->fAvatarFront[0]);
             this.rotationY = (double)(_data->fAvatarFront[2]);
             this.mapID = (int)_data->context[28] + ((int)_data->context[29] * 256);
             this.worldID = (int)_data->context[36] + ((int)_data->context[37] * 256);
         }
     }
 }