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); }
 }
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Duration);
     buffer.WriteInt(32, AnimationSNO);
     buffer.WriteInt(32, PermutationIndex);
     buffer.WriteFloat32(Speed);
 }
Example #3
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, ActorID);
     buffer.WriteInt(32, SNOParticleEffect);
     buffer.WriteInt(32, SNOAppearance);
     Field3.Encode(buffer);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteCharArray(128, Field1);
     buffer.WriteCharArray(49, Field2);
     buffer.WriteInt(4, Field3 - (2));
 }
Example #5
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, ActorID);
     buffer.WriteInt(32, SNOParticleEffect);
     buffer.WriteInt(32, SNOFlippyActor);
     Destination.Encode(buffer);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(2, HirelingIndex);
     buffer.WriteBool(Field1);
     buffer.WriteInt(32, Field2);
     buffer.WriteInt(7, Level);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteUInt(32, ActorID);
     buffer.WriteInt(5, tNPCInteraction.Length);
     for (int i = 0; i < tNPCInteraction.Length; i++) { tNPCInteraction[i].Encode(buffer); }
     buffer.WriteInt(2, (int)Type);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(5, tNPCInteraction.Length);
     for (int i = 0; i < tNPCInteraction.Length; i++) { tNPCInteraction[i].Encode(buffer); }
     buffer.WriteInt(2, Field2);
 }
Example #9
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteBool(Field0);
     buffer.WriteInt(32, snoAffixStringList);
     buffer.WriteInt(32, Field2);
     buffer.WriteInt(32, Field3);
 }
Example #10
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(4, (int) Type);
     buffer.WriteInt(32, ConversationSNO);
     buffer.WriteInt(32, Field2);
     buffer.WriteInt(2, (int) State);
 }
Example #11
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteUInt(32, OwnerID);
     buffer.WriteInt(5, EquipmentSlot - (-1));
     buffer.WriteInt(32, Column);
     buffer.WriteInt(32, Row);
 }
Example #12
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, ActorID);
     for (int i = 0; i < Field1.Length; i++) buffer.WriteInt(32, Field1[i]);
     Params.Encode(buffer);
     buffer.WriteInt(32, Field3);
 }
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(32, Field1);
     buffer.WriteInt(32, Field2);
     buffer.WriteFloat32(Field3);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(32, Field1);
     buffer.WriteInt(5, Field2);
     Field3.Encode(buffer);
 }
Example #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.Value);
             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");
     }
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, RopeSNO);
     buffer.WriteInt(32, StartSourceActorId);
     buffer.WriteInt(5, Field2);
     EndPosition.Encode(buffer);
 }
Example #17
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(2, Field0);
     buffer.WriteInt(32, Field1);
     buffer.WriteInt(32, Field2);
     buffer.WriteBool(Field3);
 }
Example #18
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteUInt(32, ActorID);
     buffer.WriteInt(2, Field1);
     buffer.WriteInt(6, aAffixGBIDs.Length);
     for (int i = 0; i < aAffixGBIDs.Length; i++) buffer.WriteInt(32, aAffixGBIDs[i]);
 }
Example #19
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(3, Field0);
     buffer.WriteInt(5, Field1);
     buffer.WriteUInt(32, PetId);
     buffer.WriteInt(5, Field3 - (-1));
 }
Example #20
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(8, Field0);
     buffer.WriteInt(8, Field1);
     buffer.WriteInt(8, Field2);
     buffer.WriteInt(8, Field3);
 }
Example #21
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(5, Field1);
     buffer.WriteInt(4, Field2);
     buffer.WriteInt(5, Field3 - (-1));
 }
Example #22
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteCharArray(512, Field0);
     buffer.WriteInt(4, Field1 - (-1));
     Field2.Encode(buffer);
     buffer.WriteInt(32, Field3);
 }
Example #23
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]);
 }
Example #24
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, snoQuest);
     buffer.WriteInt(32, snoLevelArea);
     buffer.WriteInt(32, Field2);
     buffer.WriteBool(Field3);
     buffer.WriteBool(Field4);
 }
Example #25
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteUInt(32, ChunkID);
     buffer.WriteInt(32, SceneSNO);
     Transform.Encode(buffer);
     buffer.WriteUInt(32, WorldID);
     buffer.WriteInt(3, MiniMapVisibility);
 }
Example #26
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     Field1.Encode(buffer);
     buffer.WriteInt(24, Field2);
     buffer.WriteInt(21, Field3 - (-1));
     buffer.WriteInt(32, Field4);
 }
Example #27
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteUInt(32, ActorID);
     buffer.WriteInt(4, Field1);
     buffer.WriteFloat32(Field2);
     buffer.WriteInt(2, tAnim.Length);
     for (int i = 0; i < tAnim.Length; i++) { tAnim[i].Encode(buffer); }
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, ChunkID);
     buffer.WriteInt(32, snoScene);
     Field2.Encode(buffer);
     buffer.WriteInt(32, Field3);
     buffer.WriteInt(3, MiniMapVisibility);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     Field1.Encode(buffer);
     buffer.WriteFloat32(Field2);
     buffer.WriteBool(Field3);
     buffer.WriteInt(25, Field4);
 }
Example #30
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, ActorId);
     Velocity.Encode(buffer);
     buffer.WriteInt(25, Field2);
     buffer.WriteInt(21, AnimationTag - (-1));
     buffer.WriteInt(32, Field4);
 }
Example #31
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, snoLevelArea);
 }
Example #32
0
 /// <summary>
 /// Encodes SNOName to given GameBitBuffer.
 /// </summary>
 /// <param name="buffer">The GameBitBuffer to write.</param>
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, (int)Group);
     buffer.WriteInt(32, Id);
 }
Example #33
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, sourceJewelId);
     buffer.WriteInt(32, destItemId);
 }
Example #34
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, SNOWorld);
     buffer.WriteFloat32(Field1);
     buffer.WriteFloat32(Field2);
 }
Example #35
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(3, PlayerIndex);
     buffer.WriteInt(7, Level);
 }
Example #36
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, SNOConversation);
     buffer.WriteInt(32, Field1);
     buffer.WriteBool(Field2);
     buffer.WriteBool(Field3);
     buffer.WriteBool(Field4);
     buffer.WriteInt(32, LineID);
     buffer.WriteInt(32, (int)Speaker);
     buffer.WriteInt(32, Field5);
     buffer.WriteInt(32, (int)TextClass);
     buffer.WriteInt(32, (int)Gender);
     buffer.WriteInt(32, (int)AudioClass);
     buffer.WriteInt(32, SNOSpeakerActor);
     buffer.WriteCharArray(49, Name);
     buffer.WriteInt(32, Field11);
     buffer.WriteInt(32, AnimationTag);
     buffer.WriteInt(32, Duration);
     buffer.WriteInt(32, Id);
     buffer.WriteInt(32, Field15);
 }
Example #37
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(10, Field0 - (-1));
     buffer.WriteBool(Field1);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(3, Field0);
     buffer.WriteInt(32, Field1);
     buffer.WriteInt(32, SNOPackHash);
 }
Example #39
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, SNOPackHash);
     buffer.WriteInt(32, ProtocolHash);
     buffer.WriteCharArray(32, Version);
 }
Example #40
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteBool(Field0);
     buffer.WriteInt(32, Ticks);
     buffer.WriteInt(32, Field2);
 }
Example #41
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteUInt(32, ActorID);
     buffer.WriteInt(32, Group1Hash);
     buffer.WriteInt(32, Group2Hash);
 }
Example #42
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(32, Field1);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, PowerSNOId);
     buffer.WriteInt(32, Field1);
 }
Example #44
0
 /// <summary>
 /// Encodes SceneSpecification to given GameBitBuffer.
 /// </summary>
 /// <param name="buffer">The GameBitBuffer to write.</param>
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, CellZ);
     Cell.Encode(buffer);
     for (int i = 0; i < SNOLevelAreas.Length; i++)
     {
         buffer.WriteInt(32, SNOLevelAreas[i]);
     }
     buffer.WriteInt(32, SNOPrevWorld);
     buffer.WriteInt(32, Unknown1);
     buffer.WriteInt(32, SNOPrevLevelArea);
     buffer.WriteInt(32, SNONextWorld);
     buffer.WriteInt(32, Unknown2);
     buffer.WriteInt(32, SNONextLevelArea);
     buffer.WriteInt(32, SNOMusic);
     buffer.WriteInt(32, SNOCombatMusic);
     buffer.WriteInt(32, SNOAmbient);
     buffer.WriteInt(32, SNOReverb);
     buffer.WriteInt(32, SNOWeather);
     buffer.WriteInt(32, SNOPresetWorld);
     buffer.WriteInt(32, Unknown3);
     buffer.WriteInt(32, Unknown4);
     buffer.WriteInt(32, Unknown5);
     buffer.WriteInt(32, ClusterID);
     SceneCachedValues.Encode(buffer);
 }
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteFloat32(Field0);
     Field1.Encode(buffer);
     buffer.WriteInt(32, Field2);
 }
Example #46
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, SNOSkill);
     buffer.WriteInt(3, RuneIndex - (-1));
     buffer.WriteInt(5, SkillIndex);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteUInt(32, ItemID);
     buffer.WriteInt(3, (int)Reason);
 }
Example #48
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, SNOConversation);
     buffer.WriteUInt(32, ActorId);
 }
Example #49
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, snoSkill);
     buffer.WriteInt(3, Field1 - (-1));
 }
Example #50
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Power);
     buffer.WriteInt(32, Field1);
     buffer.WriteInt(4, Field2);
 }
Example #51
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, ActorId);
 }
Example #52
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, PlayLineParamsId);
     buffer.WriteBool(Interrupt);
 }
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(3, PlayerIndex);
     buffer.WriteUInt(32, ActorId);
 }
Example #54
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
 }
Example #55
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, snoMusic);
 }
Example #56
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, FromID);
     buffer.WriteInt64(64, Amount);
     InvLoc.Encode(buffer);
 }
Example #57
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, WorldSNO);
     buffer.WriteInt(32, StartingPointActorTag);
     buffer.WriteInt(32, DestLevelAreaSNO);
 }
Example #58
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteUInt(32, ActorID);
     buffer.WriteInt(12, CollFlags);
 }
Example #59
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, snoWorld);
     buffer.WriteInt(32, SavepointId);
 }
Example #60
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, RuneDynamicId);
     buffer.WriteInt(32, PowerSNOId);
 }