namespace Supercell.Laser.Logic.Team { using Supercell.Laser.Logic.Avatar.Structures; using Supercell.Laser.Logic.Helper; using Supercell.Laser.Titan.DataStream; public class TeamMember { // IDA offset *a1 (byte) public bool IsOwner; // IDA offset *(+1) (LogicLong via WriteVInt) public long AccountId; // IDA offset *(+2) DataRef public int CharacterId; // IDA offset *(+3) DataRef public int SkinId; // IDA offset *(+4) WriteInt [64] public int HeroTrophies; // IDA offset *(+5) WriteInt [64] public int HeroHighestTrophies; // IDA offset *(+6) WriteInt [64] public int HeroLevel; // IDA offset *(+7) WriteInt [64] public int State; // IDA offset a1[1] (byte) WriteBoolean [32] public bool IsReady; // IDA offset *(+8) WriteInt [64] public int TeamIndex; // IDA offset *(+9) WriteInt [64] — был пропущен public int Unk9; // IDA offset *(+10) WriteInt [64] — был пропущен public int Unk10; // IDA offset *(+11) WriteInt [64] — был пропущен public int Unk11; // IDA offset *(+12) WriteInt [64] — был пропущен public int Unk12; // IDA offset *(+13) PlayerDisplayData public PlayerDisplayData DisplayData; // IDA offset *(+14) DataRef public int Starpower; // IDA offset *(+15) DataRef public int Gadget; // IDA offset *(+16) WriteInt [64] public int Unk16; public void Encode(ByteStream stream) { stream.WriteBoolean(IsOwner); stream.WriteLong(AccountId); ByteStreamHelper.WriteDataReference(stream, CharacterId); // *(+2) ByteStreamHelper.WriteDataReference(stream, SkinId); stream.WriteVInt(HeroTrophies); // *(+4) [64] stream.WriteVInt(HeroHighestTrophies); // *(+5) [64] stream.WriteVInt(HeroLevel); // *(+6) [64] stream.WriteVInt(State); // *(+7) [64] stream.WriteBoolean(IsReady); // a1[1] [32] stream.WriteVInt(TeamIndex); // *(+8) [64] stream.WriteVInt(Unk9); // *(+9) [64] stream.WriteVInt(Unk10); // *(+10) [64] stream.WriteVInt(Unk11); // *(+11) [64] stream.WriteVInt(Unk12); // *(+12) [64] DisplayData.Encode(stream); // *(+13) ByteStreamHelper.WriteDataReference(stream, Starpower); // *(+14) ByteStreamHelper.WriteDataReference(stream, Gadget); // *(+15) stream.WriteVInt(Unk16); // *(+16) [64] } } }