Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 9th, 2012  |  syntax: None  |  size: 1.70 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  GetResponse().Init(Outgoing.RoomDataEdit);
  2.             GetResponse().AppendUInt(Room.RoomId);
  3.             GetResponse().AppendStringWithBreak(Room.Name);
  4.             GetResponse().AppendStringWithBreak(Room.Description);
  5.             GetResponse().AppendInt32(Room.State);
  6.             GetResponse().AppendInt32(Room.Category);
  7.             GetResponse().AppendInt32(Room.UsersMax);
  8.             GetResponse().AppendInt32(((Room.RoomData.Model.MapSizeX * Room.RoomData.Model.MapSizeY) > 100) ? 50 : 25); // Max can be elected
  9.             GetResponse().AppendInt32(Room.TagCount);
  10.  
  11.             foreach (string Tag in Room.Tags.ToArray())
  12.             {
  13.                 GetResponse().AppendStringWithBreak(Tag);
  14.             }
  15.  
  16.             GetResponse().AppendInt32(Room.UsersWithRights.Count); // users /w rights count
  17.  
  18.             /*foreach (uint UserId in Room.UsersWithRights)
  19.             {
  20.                 GetResponse().AppendUInt(UserId);
  21.                 GetResponse().AppendStringWithBreak(ButterflyEnvironment.GetGame().GetClientManager().GetNameById(UserId));
  22.             }
  23.  
  24.             GetResponse().AppendInt32(Room.UsersWithRights.Count); // users /w rights count*/
  25.  
  26.             GetResponse().AppendInt32(Room.AllowPets ? 1 : 0); // allows pets in room - pet system lacking, so always off
  27.             GetResponse().AppendInt32(Room.AllowPetsEating ? 1 : 0); // allows pets to eat your food - pet system lacking, so always off
  28.             GetResponse().AppendInt32(Room.AllowWalkthrough ? 1 : 0);
  29.             GetResponse().AppendInt32(Room.Hidewall ? 1 : 0);
  30.             GetResponse().AppendInt32(Room.WallThickness);
  31.             GetResponse().AppendInt32(Room.FloorThickness);
  32.             SendResponse();