Exemple #1
0
 // Token: 0x060053CC RID: 21452 RVA: 0x001CE638 File Offset: 0x001CCA38
 public static void FetchUsersInWorldInstance(Action <List <APIUser> > successCallback, Action <string> errorCallback)
 {
     if (RoomManager.currentRoom.id.StartsWith("local:"))
     {
         List <APIUser> list = new List <APIUser>();
         list.Add(APIUser.CurrentUser);
         if (successCallback != null)
         {
             successCallback(list);
         }
         return;
     }
     APIUser.FetchUsersInWorldInstance(RoomManager.currentRoom.id, RoomManager.currentRoom.currentInstanceIdWithTags, delegate(List <APIUser> users)
     {
         PlayerManager.lastUserListFetch = new List <APIUser>(users);
         if (successCallback != null)
         {
             successCallback(users);
         }
     }, errorCallback);
 }