public void AddRank(uint Identifier, uint body, NobilityRanks Rank, string Name, ulong Donation, byte Pos) { byte[] array = new byte[this.mData.Length]; this.mData.CopyTo(array, 0); this.mData = new byte[array.Length + 0x30]; array.CopyTo(this.mData, 0); PacketConstructor.Write((ushort)this.mData.Length, 0, this.mData); PacketConstructor.Write(Identifier, this.Offset, this.mData); PacketConstructor.Write((uint)GetGender(body), this.Offset + 4, this.mData); PacketConstructor.Write(body, this.Offset + 8, this.mData); PacketConstructor.WriteNoLength(Name, this.Offset + 12, this.mData); PacketConstructor.Write(Donation, this.Offset + 0x20, this.mData); PacketConstructor.Write((uint)Rank, this.Offset + 40, this.mData); PacketConstructor.Write(Pos, this.Offset + 0x2c, this.mData); this.Offset += 0x30; }
public void AddMinimum(NobilityRanks Rank, ulong amount) { PacketConstructor.Write(amount, this.rankOffset, this.mData); PacketConstructor.Write(uint.MaxValue, this.rankOffset + 8, this.mData); PacketConstructor.Write((uint)Rank, this.rankOffset + 12, this.mData); this.rankOffset += 0x10; }