Hi Thomas,
How to fire USER_ENTER_ROOM event?
When send JoinRoomRequest, ROOM_JOIN event is fired?
What sort of request is sending, then fire USER_ENTER_ROOM event?
What is difference between user join the room and enter room?
Thanks.
Spencer
How to fire USER_ENTER_ROOM event?
-
- Posts: 8
- Joined: 11 Dec 2010, 13:29
-
- Posts: 8
- Joined: 11 Dec 2010, 13:29
Code: Select all
public void OnUserEnterRoom(BaseEvent evt) {
User user = (User)evt.Params["user"];
lock (messagesLocker) {
messages.Add(user.Name + " joined room");
}
}
when a user enters the lobby this gets triggered, add's a message to the chatlog.
Who is online
Users browsing this forum: No registered users and 63 guests