public override void Serialize(LittleEndianWriter writer) { writer.WriteInt(blueMax); // blueMax writer.WriteInt(purpleMax); // purpleMax foreach (var id in blueTeam) { writer.WriteLong(id); } for (var i = 0; i < blueMax - (blueTeam.Length); ++i) { writer.WriteLong(0); } writer.Fill(0, 144); foreach (var id in purpleTeam) { writer.WriteLong(id); } for (var i = 0; i < purpleMax - (purpleTeam.Length); ++i) { writer.WriteLong(0); } writer.Fill(0, 144); writer.WriteInt(blueTeam.Length); writer.WriteInt(purpleTeam.Length); }
public override void Serialize(LittleEndianWriter writer) { writer.WriteByte(partialKey[0]); writer.WriteByte(partialKey[1]); writer.WriteByte(partialKey[2]); writer.WriteInt(playerNo); writer.WriteLong(userId); writer.WriteInt(trash); writer.WriteLong(checkId); writer.WriteInt(trash2); }
public override void Serialize(LittleEndianWriter writer) { writer.WriteInt(unk1); writer.WriteLong(userId); writer.WriteFloat(loaded); writer.WriteFloat(ping); writer.WriteShort(unk2); writer.WriteShort(unk3); writer.WriteByte(unk4); }
public override void Serialize(LittleEndianWriter writer) { writer.WriteByte((byte)announce); writer.WriteLong((long)0); if (mapId > 0) { writer.WriteInt(1); } }
public override void Serialize(LittleEndianWriter writer) { writer.WriteLong(userId); writer.WriteInt(skinId); writer.WriteInt(name.Length + 1); foreach (var b in Encoding.UTF8.GetBytes(name)) { writer.WriteByte(b); } writer.WriteByte(description); }
public override void Serialize(LittleEndianWriter writer) { writer.WriteInt(0); writer.WriteLong(gameId); var data = Encoding.UTF8.GetBytes(name); foreach (var d in data) { writer.WriteByte((byte)d); } writer.Fill(0, 128 - data.Length); }
public override void Serialize(LittleEndianWriter writer) { writer.WriteByte((byte)announceEnum); if (sourceNetId != 0) { writer.WriteLong((long)sourceNetId); writer.WriteInt(assitsNetIds.Length); foreach (var a in assitsNetIds) { writer.WriteUInt((uint)a); } for (int i = 0; i < 12 - assitsNetIds.Length; i++) { writer.WriteInt((int)0); } } }
public void Serialize(LittleEndianWriter writer) { writer.WriteLong(userId); writer.WriteShort(0x1E); writer.WriteInt(summonerSkill1); writer.WriteInt(summonerSkill2); writer.WriteByte(isBot); writer.WriteInt(teamId); writer.Fill(0, 64); // name is no longer here writer.Fill(0, 64); foreach (var b in Encoding.UTF8.GetBytes(rank)) { writer.WriteByte(b); } writer.Fill(0, 24 - rank.Length); writer.WriteInt(summonerIcon); writer.WriteShort(ribbon); }
public override void Serialize(LittleEndianWriter writer) { writer.WriteByte(unk); writer.WriteInt(mapId); foreach (var player in players) { player.Serialize(writer); } for (var i = 0; i < 12 - players.Length; ++i) { writer.WriteLong(-1); writer.Fill(0, 173); } foreach (var b in Encoding.UTF8.GetBytes(version)) { writer.WriteByte(b); } writer.Fill(0, 256 - version.Length); string gameModeString = gameMode.ToString(); foreach (var b in Encoding.UTF8.GetBytes(gameModeString)) { writer.WriteByte(b); } writer.Fill(0, 128 - gameModeString.Length); foreach (var b in Encoding.UTF8.GetBytes(region)) { writer.WriteByte((byte)b); } writer.Fill(0, 2333); // 128 - 3 + 661 + 1546 writer.WriteInt(gameFeatures); // gameFeatures (turret range indicators, etc.) writer.Fill(0, 256); writer.WriteInt((int)0); writer.Fill(1, 19); }