Ejemplo n.º 1
0
        public void ParseValue(GameBitBuffer buffer)
        {
            switch (Attribute.EncodingType)
            {
            case GameAttributeEncoding.Int:
                Int = buffer.ReadInt(Attribute.BitCount);
                break;

            case GameAttributeEncoding.IntMinMax:
                Int = buffer.ReadInt(Attribute.BitCount) + Attribute.Min.Value;
                break;

            case GameAttributeEncoding.Float16:
                Float = buffer.ReadFloat16();
                break;

            case GameAttributeEncoding.Float16Or32:
                Float = buffer.ReadBool() ? buffer.ReadFloat16() : buffer.ReadFloat32();
                break;

            case GameAttributeEncoding.Float32:
                Float = buffer.ReadFloat32();
                break;

            default:
                throw new Exception("bad voodoo");
            }
        }
Ejemplo n.º 2
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Position = new Vector3D();
         Position.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Angle = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field3 = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Speed = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(25);
     }
     if (buffer.ReadBool())
     {
         AnimationTag = buffer.ReadInt(21) + (-1);
     }
     if (buffer.ReadBool())
     {
         Field7 = buffer.ReadInt(32);
     }
 }
Ejemplo n.º 3
0
 public static Vector3 Parse(this Vector3 vector3, GameBitBuffer buffer)
 {
     vector3.x = buffer.ReadFloat32();
     vector3.y = buffer.ReadFloat32();
     vector3.z = buffer.ReadFloat32();
     return(vector3);
 }
Ejemplo n.º 4
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Position = new Vector3D();
         Position.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Field2 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field3 = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Field4 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(24);
     }
     if (buffer.ReadBool())
     {
         Field6 = buffer.ReadInt(21) + (-1);
     }
     if (buffer.ReadBool())
     {
         Field7 = buffer.ReadInt(32);
     }
 }
Ejemplo n.º 5
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Position = new Vector3D();
         Position.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Angle = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         TurnImmediately = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Speed = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(25);
     }
     if (buffer.ReadBool())
     {
         AnimationTag = buffer.ReadInt(21) + (-1);
     }
     if (buffer.ReadBool())
     {
         Field7 = buffer.ReadInt(32);
     }
 }
Ejemplo n.º 6
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Field1 = new Vector3D();
         Field1.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Field2 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field3 = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Field4 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(24);
     }
     if (buffer.ReadBool())
     {
         Field6 = buffer.ReadInt(21) + (-1);
     }
     if (buffer.ReadBool())
     {
         Field7 = buffer.ReadInt(32);
     }
 }
Ejemplo n.º 7
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Position = new Vector3D();
         Position.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Angle = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field3 = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Field4 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(24);
     }
     if (buffer.ReadBool())
     {
         Field6 = buffer.ReadInt(21) + (-1);
     }
     if (buffer.ReadBool())
     {
         Field7 = buffer.ReadInt(32);
     }
 }
Ejemplo n.º 8
0
        /*public static Vector3 RotatedCopyNorm(this Mogre.Vector3 vector3, Degree degree, Mogre.Vector3 Axis )
         * {
         *  Logging.LogManager.DefaultLogger.Trace("Degree entered : " + degree.ValueDegrees.ToString());
         *  Quaternion q = new Quaternion(degree, Axis);
         *  Matrix3 rotM = q.ToRotationMatrix();
         *  Vector3 newDirector = (vector3 * rotM).NormalisedCopy;
         *  return newDirector;
         * }*/

        //-----------------------------------------------------------------------------

        public static Quaternion Parse(this Quaternion quaternion, GameBitBuffer buffer)
        {
            quaternion.x = buffer.ReadFloat32();
            quaternion.y = buffer.ReadFloat32();
            quaternion.z = buffer.ReadFloat32();
            quaternion.w = buffer.ReadFloat32();
            return(quaternion);
        }
Ejemplo n.º 9
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
     Field4 = buffer.ReadFloat32();
     Field5 = buffer.ReadFloat32();
     Field6 = buffer.ReadInt(32);
 }
Ejemplo n.º 10
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
     Field4 = buffer.ReadFloat32();
     Field5 = buffer.ReadFloat32();
     Field6 = buffer.ReadInt(32);
 }
Ejemplo n.º 11
0
 public override void Parse(GameBitBuffer buffer)
 {
     Tick = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(4);
     Position = new Vector3D();
     Position.Parse(buffer);
     Angle = buffer.ReadFloat32();
     Speed = buffer.ReadFloat32();
     AnimationTag = buffer.ReadInt(32);
     Field6 = buffer.ReadInt(21) + (-1);
 }
Ejemplo n.º 12
0
 public override void Parse(GameBitBuffer buffer)
 {
     Tick     = buffer.ReadInt(32);
     Field1   = buffer.ReadInt(4);
     Position = new Vector3D();
     Position.Parse(buffer);
     Angle        = buffer.ReadFloat32();
     Speed        = buffer.ReadFloat32();
     AnimationTag = buffer.ReadInt(32);
     Field6       = buffer.ReadInt(21) + (-1);
 }
Ejemplo n.º 13
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new Vector3D();
     Field1.Parse(buffer);
     Field2 = new Vector3D();
     Field2.Parse(buffer);
     Field3 = buffer.ReadInt(24);
     Field4 = buffer.ReadInt(21) + (-1);
     Field5 = buffer.ReadInt(21) + (-1);
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadFloat32();
 }
Ejemplo n.º 14
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     Start = new Vector3D();
     Start.Parse(buffer);
     Velocity = new Vector3D();
     Velocity.Parse(buffer);
     Field3 = buffer.ReadInt(24);
     FlyingAnimationTagID = buffer.ReadInt(21) + (-1);
     LandingAnimationTagID = buffer.ReadInt(21) + (-1);
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadFloat32();
 }
Ejemplo n.º 15
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId       = buffer.ReadUInt(32);
     ActorSNO      = buffer.ReadInt(32);
     WorldLocation = new WorldPlace();
     WorldLocation.Parse(buffer);
     if (buffer.ReadBool())
     {
         PlayerIndex = buffer.ReadInt(4) + (-1);
     }
     LevelAreaSNO = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadFloat32();
     }
     Field6 = buffer.ReadInt(4);
     Field7 = buffer.ReadInt(6);
     if (buffer.ReadBool())
     {
         Field8 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         MinimapTextureSNO = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field10 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field11 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         StringListSNO = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field13 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field14 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field15 = buffer.ReadBool();
     }
 }
Ejemplo n.º 16
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     Start = new Vector3D();
     Start.Parse(buffer);
     Velocity = new Vector3D();
     Velocity.Parse(buffer);
     Field3 = buffer.ReadInt(25);
     FlyingAnimationTagID = buffer.ReadInt(21) + (-1);
     LandingAnimationTagID = buffer.ReadInt(21) + (-1);
     Gravity = buffer.ReadFloat32();
     PowerSNO = buffer.ReadInt(32);
     Bounce = buffer.ReadFloat32();
     DestinationZ = buffer.ReadFloat32();
 }
Ejemplo n.º 17
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     Start   = new Vector3D();
     Start.Parse(buffer);
     Velocity = new Vector3D();
     Velocity.Parse(buffer);
     Field3 = buffer.ReadInt(25);
     FlyingAnimationTagID  = buffer.ReadInt(21) + (-1);
     LandingAnimationTagID = buffer.ReadInt(21) + (-1);
     Gravity      = buffer.ReadFloat32();
     PowerSNO     = buffer.ReadInt(32);
     Bounce       = buffer.ReadFloat32();
     DestinationZ = buffer.ReadFloat32();
 }
Ejemplo n.º 18
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     Start   = new Vector3D();
     Start.Parse(buffer);
     Velocity = new Vector3D();
     Velocity.Parse(buffer);
     Field3 = buffer.ReadInt(25);
     FlyingAnimationTagID  = buffer.ReadInt(21) + (-1);
     LandingAnimationTagID = buffer.ReadInt(21) + (-1);
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadFloat32();
     Field9 = buffer.ReadFloat32();
 }
Ejemplo n.º 19
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadFloat32();
     Field1 = new PRTransform();
     Field1.Parse(buffer);
     Field2 = buffer.ReadInt(32);
 }
Ejemplo n.º 20
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = new Vector3D();
     Field3.Parse(buffer);
     Field4 = new Vector3D();
     Field4.Parse(buffer);
     Field5 = buffer.ReadFloat32();
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadInt(32);
     Field8 = new RGBAColor();
     Field8.Parse(buffer);
     Field9 = buffer.ReadCharArray(128);
 }
Ejemplo n.º 21
0
 public void Parse(GameBitBuffer buffer)
 {
     Scale = buffer.ReadFloat32();
     Transform = new PRTransform();
     Transform.Parse(buffer);
     WorldID = buffer.ReadUInt(32);
 }
Ejemplo n.º 22
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadFloat32();
 }
Ejemplo n.º 23
0
 public void Parse(GameBitBuffer buffer)
 {
     Duration = buffer.ReadInt(32);
     AnimationSNO = buffer.ReadInt(32);
     PermutationIndex = buffer.ReadInt(32);
     Speed = buffer.ReadFloat32();
 }
Ejemplo n.º 24
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadFloat32();
 }
Ejemplo n.º 25
0
 public void Parse(GameBitBuffer buffer)
 {
     Duration         = buffer.ReadInt(32);
     AnimationSNO     = buffer.ReadInt(32);
     PermutationIndex = buffer.ReadInt(32);
     Speed            = buffer.ReadFloat32();
 }
Ejemplo n.º 26
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = new Vector3D();
     Field3.Parse(buffer);
     Field4 = new Vector3D();
     Field4.Parse(buffer);
     Field5 = buffer.ReadFloat32();
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadInt(32);
     Field8 = new RGBAColor();
     Field8.Parse(buffer);
     Field9 = buffer.ReadCharArray(128);
 }
Ejemplo n.º 27
0
 public void Parse(GameBitBuffer buffer)
 {
     Scale     = buffer.ReadFloat32();
     Transform = new PRTransform();
     Transform.Parse(buffer);
     WorldID = buffer.ReadUInt(32);
 }
Ejemplo n.º 28
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadFloat32();
     Field1 = new PRTransform();
     Field1.Parse(buffer);
     Field2 = buffer.ReadInt(32);
 }
Ejemplo n.º 29
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new WorldPlace();
     Field1.Parse(buffer);
     Field2          = buffer.ReadInt(32);
     Field3          = buffer.ReadInt(32);
     m_snoStringList = buffer.ReadInt(32);
     Field5          = buffer.ReadInt(32);
     Field6          = buffer.ReadBool();
     Field7          = buffer.ReadBool();
     Field8          = buffer.ReadBool();
     Field9          = buffer.ReadFloat32();
     Field10         = buffer.ReadFloat32();
     Field11         = buffer.ReadFloat32();
     Field12         = buffer.ReadInt(32);
 }
Ejemplo n.º 30
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = new WorldPlace();
     Field2.Parse(buffer);
     if (buffer.ReadBool())
     {
         Field3 = buffer.ReadInt(4) + (-1);
     }
     Field4 = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadFloat32();
     }
     Field6 = buffer.ReadInt(4);
     Field7 = buffer.ReadInt(6);
     if (buffer.ReadBool())
     {
         Field8 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field9 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field10 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field11 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field12 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field13 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field14 = buffer.ReadFloat32();
     }
 }
Ejemplo n.º 31
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     Field1 = buffer.ReadInt(4);
     Field2 = buffer.ReadFloat32();
     tAnim = new PlayAnimationMessageSpec[buffer.ReadInt(2)];
     for (int i = 0; i < tAnim.Length; i++) { tAnim[i] = new PlayAnimationMessageSpec(); tAnim[i].Parse(buffer); }
 }
Ejemplo n.º 32
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = new WorldPlace();
     Field2.Parse(buffer);
     if (buffer.ReadBool())
     {
         Field3 = buffer.ReadInt(4) + (-1);
     }
     Field4 = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadFloat32();
     }
     Field6 = buffer.ReadInt(4);
     Field7 = buffer.ReadInt(6);
     if (buffer.ReadBool())
     {
         Field8 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field9 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field10 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field11 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field12 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field13 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field14 = buffer.ReadFloat32();
     }
 }
Ejemplo n.º 33
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId     = buffer.ReadInt(32);
     Scale       = buffer.ReadFloat32();
     Position    = Position.Parse(buffer);
     Orientation = Orientation.Parse(buffer);
     MapId       = buffer.ReadInt(32);
 }
Ejemplo n.º 34
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new WorldPlace();
     Field1.Parse(buffer);
     Field2 = buffer.ReadInt(32);
     m_snoStringList = buffer.ReadInt(32);
     Field4 = buffer.ReadInt(32);
     Field5 = buffer.ReadFloat32();
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadFloat32();
     Field8 = buffer.ReadInt(32);
     Field9 = buffer.ReadBool();
     Field10 = buffer.ReadBool();
     Field11 = buffer.ReadBool();
     Field12 = buffer.ReadInt(32);
 }
Ejemplo n.º 35
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     Field1 = buffer.ReadInt(4);
     Field2 = buffer.ReadFloat32();
     tAnim = new PlayAnimationMessageSpec[buffer.ReadInt(2)];
     for (int i = 0; i < tAnim.Length; i++) { tAnim[i] = new PlayAnimationMessageSpec(); tAnim[i].Parse(buffer); }
 }
Ejemplo n.º 36
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new Vector3D();
     Field1.Parse(buffer);
     Field2 = buffer.ReadFloat32();
     Field3 = buffer.ReadBool();
     Field4 = buffer.ReadInt(25);
 }
Ejemplo n.º 37
0
 public void Parse(GameBitBuffer buffer)
 {
     Scale       = buffer.ReadFloat32();
     Position    = new Vector3();
     Position    = Position.Parse(buffer);
     lookAt      = new Vector3();
     lookAt      = lookAt.Parse(buffer);
     Orientation = new Quaternion();
     Orientation = Orientation.Parse(buffer);
     WorldID     = buffer.ReadInt(32);
 }
Ejemplo n.º 38
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(4);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
     Field4 = new Vector3D();
     Field4.Parse(buffer);
     Field5 = buffer.ReadFloat32();
     Field6 = new Vector3D();
     Field6.Parse(buffer);
     Field7  = buffer.ReadInt(32);
     Field8  = buffer.ReadInt(32);
     Field9  = buffer.ReadInt(32);
     Field10 = buffer.ReadInt(32);
     Field11 = buffer.ReadInt(32);
     Field12 = buffer.ReadFloat32();
     Field13 = buffer.ReadFloat32();
     Field14 = new DPathSinData();
     Field14.Parse(buffer);
 }
Ejemplo n.º 39
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(4);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
     Field4 = new Vector3D();
     Field4.Parse(buffer);
     Field5 = buffer.ReadFloat32();
     Field6 = new Vector3D();
     Field6.Parse(buffer);
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadInt(32);
     Field9 = buffer.ReadInt(32);
     Field10 = buffer.ReadInt(32);
     Field11 = buffer.ReadInt(32);
     Field12 = buffer.ReadFloat32();
     Field13 = buffer.ReadFloat32();
     Field14 = new DPathSinData();
     Field14.Parse(buffer);
 }
Ejemplo n.º 40
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId  = buffer.ReadInt(32);
     Position = new Vector3D();
     Position.Parse(buffer);
     Angle  = buffer.ReadFloat32();
     Field3 = buffer.ReadBool();
     Field4 = buffer.ReadInt(25);
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(16);
     }
 }
Ejemplo n.º 41
0
 public void ParseValue(GameBitBuffer buffer)
 {
     switch (Attribute.EncodingType)
     {
         case GameAttributeEncoding.Int:
             Int = buffer.ReadInt(Attribute.BitCount);
             break;
         case GameAttributeEncoding.IntMinMax:
             Int = buffer.ReadInt(Attribute.BitCount) + Attribute.Min.Value;
             break;
         case GameAttributeEncoding.Float16:
             Float = buffer.ReadFloat16();
             break;
         case GameAttributeEncoding.Float16Or32:
             Float = buffer.ReadBool() ? buffer.ReadFloat16() : buffer.ReadFloat32();
             break;
         case GameAttributeEncoding.Float32:
             Float = buffer.ReadFloat32();
             break;
         default:
             throw new Exception("bad voodoo");
     }
 }
Ejemplo n.º 42
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadUInt(32);
     ActorSNO = buffer.ReadInt(32);
     WorldLocation = new WorldPlace();
     WorldLocation.Parse(buffer);
     if (buffer.ReadBool())
     {
         PlayerIndex = buffer.ReadInt(4) + (-1);
     }
     LevelAreaSNO = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadFloat32();
     }
     Field6 = buffer.ReadInt(4);
     Field7 = buffer.ReadInt(6);
     if (buffer.ReadBool())
     {
         Field8 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         MinimapTextureSNO = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field10 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field11 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         StringListSNO = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field13 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field14 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field15 = buffer.ReadBool();
     }
 }
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     serVertices = new SerializeData();
     serVertices.Parse(buffer);
     Field2 = new DT_VARIABLEARRAY();
     Field2.Parse(buffer);
     Field3 = buffer.ReadInt(32);
     serTriangles = new SerializeData();
     serTriangles.Parse(buffer);
     Field5 = new DT_VARIABLEARRAY();
     Field5.Parse(buffer);
     Field6 = buffer.ReadInt(32);
     serPlanes = new SerializeData();
     serPlanes.Parse(buffer);
     Field8 = new DT_VARIABLEARRAY();
     Field8.Parse(buffer);
     Field9 = new Matrix3x3();
     Field9.Parse(buffer);
     Field10 = new Vector3D();
     Field10.Parse(buffer);
     Field11 = buffer.ReadFloat32();
     Field12 = buffer.ReadFloat32();
 }
Ejemplo n.º 44
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     Angle = buffer.ReadFloat32();
     Field2 = buffer.ReadBool();
 }
Ejemplo n.º 45
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = new Vector3D();
     Field0.Parse(buffer);
     Field1 = buffer.ReadFloat32();
 }
Ejemplo n.º 46
0
 public override void Parse(GameBitBuffer buffer)
 {
     snoQuest = buffer.ReadInt(32);
     Field1   = buffer.ReadInt(32);
     Field2   = buffer.ReadFloat32();
 }
Ejemplo n.º 47
0
 public void Parse(GameBitBuffer buffer)
 {
     Amount = buffer.ReadFloat32();
     Axis   = new Vector3D();
     Axis.Parse(buffer);
 }
Ejemplo n.º 48
0
 public void Parse(GameBitBuffer buffer)
 {
     X = buffer.ReadFloat32();
     Y = buffer.ReadFloat32();
     Z = buffer.ReadFloat32();
 }
Ejemplo n.º 49
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadUInt(32);
     Angle = buffer.ReadFloat32();
     TurnImmediately = buffer.ReadBool();
 }
Ejemplo n.º 50
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadInt(32);
     Amount = buffer.ReadFloat32();
 }
Ejemplo n.º 51
0
 /// <summary>
 /// Parses Quaternion from given GameBitBuffer.
 /// </summary>
 /// <param name="buffer">The GameBitBuffer to parse from.</param>
 public void Parse(GameBitBuffer buffer)
 {
     W        = buffer.ReadFloat32();
     Vector3D = new Vector3D();
     Vector3D.Parse(buffer);
 }
Ejemplo n.º 52
0
 public void Parse(GameBitBuffer buffer)
 {
     Amount = buffer.ReadFloat32();
     Axis = new Vector3D();
     Axis.Parse(buffer);
 }
Ejemplo n.º 53
0
 public override void Parse(GameBitBuffer buffer)
 {
     SNOWorld = buffer.ReadInt(32);
     Field1   = buffer.ReadFloat32();
     Field2   = buffer.ReadFloat32();
 }
Ejemplo n.º 54
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId         = buffer.ReadUInt(32);
     Angle           = buffer.ReadFloat32();
     TurnImmediately = buffer.ReadBool();
 }
Ejemplo n.º 55
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     Number = buffer.ReadFloat32();
     Type = (FloatType)buffer.ReadInt(6);
 }
Ejemplo n.º 56
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadFloat32();
     Field1 = buffer.ReadBool();
     Field2 = buffer.ReadFloat32();
 }
Ejemplo n.º 57
0
 public override void Parse(GameBitBuffer buffer)
 {
     snoQuest = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadFloat32();
 }
Ejemplo n.º 58
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadFloat32();
     Field1 = buffer.ReadFloat32();
 }
Ejemplo n.º 59
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new Vector3D();
     Field1.Parse(buffer);
     Field2 = new Vector3D();
     Field2.Parse(buffer);
     Field3 = buffer.ReadInt(25);
     Field4 = buffer.ReadInt(21) + (-1);
     Field5 = buffer.ReadInt(21) + (-1);
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadFloat32();
     Field9 = buffer.ReadFloat32();
 }