Exemplo n.º 1
0
 public void onGetLiveUserInfoDone(com.shephertz.app42.gaming.multiplayer.client.events.LiveUserInfoEvent eventObj)
 {
     if (eventObj.getResult() == WarpResponseResultCode.SUCCESS)
     {
         // Join the room where the friend is playing
         GlobalContext.GameRoomId = eventObj.getLocationId();
         WarpClient.GetInstance().JoinRoom(GlobalContext.GameRoomId);
     }
 }
Exemplo n.º 2
0
 public void onSetCustomUserDataDone(com.shephertz.app42.gaming.multiplayer.client.events.LiveUserInfoEvent eventObj)
 {
     if (eventObj.getResult() == WarpResponseResultCode.SUCCESS)
     {
         WriteOnUI("GetLiveUserInfo Done room Id: " + eventObj.getLocationId());
     }
     else
     {
         WriteOnUI("GetLiveUserInfo Failed ");
     }
 }
 public void onGetLiveUserInfoDone(com.shephertz.app42.gaming.multiplayer.client.events.LiveUserInfoEvent eventObj)
 {
     if (eventObj.getResult() == WarpResponseResultCode.SUCCESS)
     {
         // Join the room where the friend is playing
         GlobalContext.GameRoomId = eventObj.getLocationId();
         WarpClient.GetInstance().JoinRoom(GlobalContext.GameRoomId);
     }
     else
     {
         // remote user is either off line or has not joined any room yet. Create one and wait for him.
         GlobalContext.tableProperties["IsPrivateRoom"] = "true";
         WarpClient.GetInstance().CreateRoom(GlobalContext.localUsername, GlobalContext.localUsername, 2, GlobalContext.tableProperties);
     }
 }
Exemplo n.º 4
0
 public void onSetCustomUserDataDone(com.shephertz.app42.gaming.multiplayer.client.events.LiveUserInfoEvent eventObj)
 {
 }
 public void onSetCustomUserDataDone(com.shephertz.app42.gaming.multiplayer.client.events.LiveUserInfoEvent eventObj)
 {
     //throw new NotImplementedException();
 }