A couple of questions on OnRoomListUpdate

Options
Working with OnRoomListUpdate... have a couple of questions:

1. Let's say you have a situation where someone creates a room around the same time that another room is destroyed. Is the OnRoomListUpdate callback fired once or twice?

2. The List<RoomInfo> roomList parameter -- is this a full listing of ALL rooms that are currently available? Or only a listing of changes? I had assumed that since it is a "List", that it would be listing all rooms each time -- but in my testing, it looks like it may be a listing of changes only?

Just curious on how this piece works.

Comments

  • S_Oliver
    S_Oliver ✭✭✭
    Options
    The first list you get is the initial list of all rooms, later on you got just updates, if rooms are added,removed,closed.

    You have to cache them an evaluate changes with each update.
    If i remember correct, check out the asteroids demo how to cache properly.

    If you need any further help, i could provide you with sample code.
  • Brant
    Options
    Nope, that takes care of it. Thanks!