
Untitled
By: a guest on
Aug 9th, 2012 | syntax:
None | size: 1.70 KB | hits: 12 | expires: Never
GetResponse().Init(Outgoing.RoomDataEdit);
GetResponse().AppendUInt(Room.RoomId);
GetResponse().AppendStringWithBreak(Room.Name);
GetResponse().AppendStringWithBreak(Room.Description);
GetResponse().AppendInt32(Room.State);
GetResponse().AppendInt32(Room.Category);
GetResponse().AppendInt32(Room.UsersMax);
GetResponse().AppendInt32(((Room.RoomData.Model.MapSizeX * Room.RoomData.Model.MapSizeY) > 100) ? 50 : 25); // Max can be elected
GetResponse().AppendInt32(Room.TagCount);
foreach (string Tag in Room.Tags.ToArray())
{
GetResponse().AppendStringWithBreak(Tag);
}
GetResponse().AppendInt32(Room.UsersWithRights.Count); // users /w rights count
/*foreach (uint UserId in Room.UsersWithRights)
{
GetResponse().AppendUInt(UserId);
GetResponse().AppendStringWithBreak(ButterflyEnvironment.GetGame().GetClientManager().GetNameById(UserId));
}
GetResponse().AppendInt32(Room.UsersWithRights.Count); // users /w rights count*/
GetResponse().AppendInt32(Room.AllowPets ? 1 : 0); // allows pets in room - pet system lacking, so always off
GetResponse().AppendInt32(Room.AllowPetsEating ? 1 : 0); // allows pets to eat your food - pet system lacking, so always off
GetResponse().AppendInt32(Room.AllowWalkthrough ? 1 : 0);
GetResponse().AppendInt32(Room.Hidewall ? 1 : 0);
GetResponse().AppendInt32(Room.WallThickness);
GetResponse().AppendInt32(Room.FloorThickness);
SendResponse();