Esempio n. 1
0
 public void Encode(GameBitBuffer buffer)
 {
     for (int i = 0; i < Field0.Length; i++)
     {
         Field0[i].Encode(buffer);
     }
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(4, atKeyVals.Length);
     for (int i = 0; i < atKeyVals.Length; i++) { atKeyVals[i].Encode(buffer); }
     for (int i = 0; i < atKeyVals.Length; i++) { atKeyVals[i].EncodeValue(buffer); }
 }
Esempio n. 3
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(3, Field0);
     buffer.WriteInt(5, Field1);
     buffer.WriteInt(32, Field2);
     buffer.WriteInt(5, Field3 - (-1));
 }
Esempio n. 4
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(11, Field1 - (-1));
     buffer.WriteInt(11, Field2);
     buffer.WriteBool(Field3);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new InventoryLocationMessageData();
     Field1.Parse(buffer);
     Field2 = buffer.ReadInt(32);
 }
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadFloat32();
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(2);
     Field1 = buffer.ReadBool();
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(7);
 }
Esempio n. 8
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteCharArray(128, Field1);
     buffer.WriteCharArray(49, Field2);
     buffer.WriteInt(4, Field3 - (2));
 }
Esempio n. 9
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = (byte) buffer.ReadInt(8);
     Field1 = (byte) buffer.ReadInt(8);
     Field2 = (byte) buffer.ReadInt(8);
     Field3 = (byte) buffer.ReadInt(8);
 }
Esempio n. 10
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(2, Field1);
     buffer.WriteInt(6, aAffixGBIDs.Length);
     for (int i = 0; i < aAffixGBIDs.Length; i++) buffer.WriteInt(32, aAffixGBIDs[i]);
 }
Esempio n. 11
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadCharArray(128);
     Field2 = buffer.ReadCharArray(49);
     Field3 = buffer.ReadInt(4) + (2);
 }
Esempio n. 12
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(2);
     aAffixGBIDs = new int /* gbid */[buffer.ReadInt(6)];
     for (int i = 0; i < aAffixGBIDs.Length; i++) aAffixGBIDs[i] = buffer.ReadInt(32);
 }
Esempio n. 13
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new IVector2D();
     Field1.Parse(buffer);
     arSnoLevelAreas = new int /* sno */[4];
     for (int i = 0; i < arSnoLevelAreas.Length; i++) arSnoLevelAreas[i] = buffer.ReadInt(32);
     snoPrevWorld = buffer.ReadInt(32);
     Field4 = buffer.ReadInt(32);
     snoPrevLevelArea = buffer.ReadInt(32);
     snoNextWorld = buffer.ReadInt(32);
     Field7 = buffer.ReadInt(32);
     snoNextLevelArea = buffer.ReadInt(32);
     snoMusic = buffer.ReadInt(32);
     snoCombatMusic = buffer.ReadInt(32);
     snoAmbient = buffer.ReadInt(32);
     snoReverb = buffer.ReadInt(32);
     snoWeather = buffer.ReadInt(32);
     snoPresetWorld = buffer.ReadInt(32);
     Field15 = buffer.ReadInt(32);
     Field16 = buffer.ReadInt(32);
     Field17 = buffer.ReadInt(32);
     Field18 = buffer.ReadInt(32);
     tCachedValues = new SceneCachedValues();
     tCachedValues.Parse(buffer);
 }
 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);
     }
 }
Esempio n. 15
0
 public void EncodeValue(GameBitBuffer buffer)
 {
     switch (Attribute.EncodingType)
     {
         case GameAttributeEncoding.Int:
             buffer.WriteInt(Attribute.BitCount, Int);
             break;
         case GameAttributeEncoding.IntMinMax:
             buffer.WriteInt(Attribute.BitCount, Int - Attribute.Min);
             break;
         case GameAttributeEncoding.Float16:
             buffer.WriteFloat16(Float);
             break;
         case GameAttributeEncoding.Float16Or32:
             if (Float >= 65536.0f || -65536.0f >= Float)
             {
                 buffer.WriteBool(false);
                 buffer.WriteFloat32(Float);
             }
             else
             {
                 buffer.WriteBool(true);
                 buffer.WriteFloat16(Float);
             }
             break;
         default:
             throw new Exception("bad voodoo");
     }
 }
Esempio n. 16
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(8, Field0);
     buffer.WriteInt(8, Field1);
     buffer.WriteInt(8, Field2);
     buffer.WriteInt(8, Field3);
 }
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(5) + (-1);
     Field2 = new IVector2D();
     Field2.Parse(buffer);
 }
Esempio n. 18
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = new Quaternion();
     Field0.Parse(buffer);
     Field1 = new Vector3D();
     Field1.Parse(buffer);
 }
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(32, Field1);
     buffer.WriteInt(32, Field2);
     buffer.WriteFloat32(Field3);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new NetAttributeKeyValue();
     Field1.Parse(buffer);
     Field1.ParseValue(buffer);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(2, Field1 - (-1));
     buffer.WriteInt(32, Field2);
     Field3.Encode(buffer);
 }
Esempio n. 22
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, gbidOriginalItem);
     buffer.WriteInt(4, Field1 - (-1));
     buffer.WriteInt(32, Field2);
     for (int i = 0; i < gbidNewItems.Length; i++) buffer.WriteInt(32, gbidNewItems[i]);
 }
Esempio n. 23
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(5);
     Field3 = buffer.ReadInt(2) + (-1);
     if (buffer.ReadBool())
     {
         Field4 = new WorldLocationMessageData();
         Field4.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Field5 = new InventoryLocationMessageData();
         Field5.Parse(buffer);
     }
     Field6 = new GBHandle();
     Field6.Parse(buffer);
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadInt(32);
     Field9 = buffer.ReadInt(4) + (-1);
     Field10 = (byte)buffer.ReadInt(8);
     if (buffer.ReadBool())
     {
         Field11 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field12 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field13 = buffer.ReadInt(32);
     }
 }
Esempio n. 24
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = new HotbarButtonData[9];
     for (int i = 0; i < Field0.Length; i++)
     {
         Field0[i] = new HotbarButtonData();
         Field0[i].Parse(buffer);
     }
     Field1 = new SkillKeyMapping[15];
     for (int i = 0; i < Field1.Length; i++)
     {
         Field1[i] = new SkillKeyMapping();
         Field1[i].Parse(buffer);
     }
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
     Field4 = new HirelingSavedData();
     Field4.Parse(buffer);
     Field5 = buffer.ReadInt(32);
     Field6 = new LearnedLore();
     Field6.Parse(buffer);
     snoActiveSkills = new int /* sno */[6];
     for (int i = 0; i < snoActiveSkills.Length; i++) snoActiveSkills[i] = buffer.ReadInt(32);
     snoTraits = new int /* sno */[3];
     for (int i = 0; i < snoTraits.Length; i++) snoTraits[i] = buffer.ReadInt(32);
     Field9 = new SavePointData();
     Field9.Parse(buffer);
     m_SeenTutorials = new int /* sno */[64];
     for (int i = 0; i < m_SeenTutorials.Length; i++) m_SeenTutorials[i] = buffer.ReadInt(32);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     atKeyVals = new NetAttributeKeyValue[buffer.ReadInt(4)];
     for (int i = 0; i < atKeyVals.Length; i++) { atKeyVals[i] = new NetAttributeKeyValue(); atKeyVals[i].Parse(buffer); }
     for (int i = 0; i < atKeyVals.Length; i++) { atKeyVals[i].ParseValue(buffer); }
 }
Esempio n. 26
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadBool();
     snoAffixStringList = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
 }
Esempio n. 27
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(3);
     Field1 = buffer.ReadInt(5);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(5) + (-1);
 }
Esempio n. 28
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteBool(Field0);
     buffer.WriteInt(32, snoAffixStringList);
     buffer.WriteInt(32, Field2);
     buffer.WriteInt(32, Field3);
 }
Esempio n. 29
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = new Vector3D();
     Field0.Parse(buffer);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
 }
Esempio n. 30
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteCharArray(512, Field0);
     buffer.WriteInt(4, Field1 - (-1));
     Field2.Encode(buffer);
     buffer.WriteInt(32, Field3);
 }