public async Task AllianceMemberEntry(MemoryStream stream, int order) { var player = await Resources.PlayerCache.GetPlayer(AccountId.Long); await AccountId.Encode(stream); // Avatar Id await stream.WriteStringAsync(null); // FacebookId await stream.WriteStringAsync(player.Name); // Name await stream.WriteIntAsync(Role); // Role await stream.WriteIntAsync(player.ExpLevel); // Exp Level await stream.WriteIntAsync(LogicUtils.GetLeagueByScore(Score)); // League Type await stream.WriteIntAsync(Score); // Score await stream.WriteIntAsync(Donations); // Donations await stream.WriteIntAsync(DonationsReceived); // Donations Received await stream.WriteIntAsync(order); // Order await stream.WriteIntAsync(order); // Previous Order stream.WriteByte(0); // IsNewMember stream.WriteByte(1); // HasHomeId await AccountId.Encode(stream); // Home Id }