public void OnRailEvent(RAILEventID event_id, EventBase data)
 {
     //IL_0038: Unknown result type (might be due to invalid IL or missing references)
     //IL_003e: Invalid comparison between Unknown and I4
     //IL_0040: Unknown result type (might be due to invalid IL or missing references)
     //IL_0046: Invalid comparison between Unknown and I4
     //IL_0048: Unknown result type (might be due to invalid IL or missing references)
     //IL_004e: Invalid comparison between Unknown and I4
     //IL_0053: Unknown result type (might be due to invalid IL or missing references)
     //IL_005d: Expected O, but got Unknown
     //IL_0060: Unknown result type (might be due to invalid IL or missing references)
     //IL_006a: Expected O, but got Unknown
     //IL_006d: Unknown result type (might be due to invalid IL or missing references)
     //IL_0077: Expected O, but got Unknown
     WeGameHelper.WriteDebugString("OnRailEvent,id=" + ((object)(RAILEventID)(event_id)).ToString() + " ,result=" + ((object)(RailResult)(data.result)).ToString());
     if ((int)event_id != 3006)
     {
         if ((int)event_id != 16001)
         {
             if ((int)event_id == 16002)
             {
                 OnCreateSessionFailed((CreateSessionFailed)data);
             }
         }
         else
         {
             OnCreateSessionRequest((CreateSessionRequest)data);
         }
     }
     else
     {
         UpdateUserStateBySessionAuthResult((GameServerStartSessionWithPlayerResponse)data);
     }
 }
示例#2
0
 public static void RailEventCallBack(RAILEventID eventId, EventBase data)
 {
     if ((int)eventId != 2)
     {
         return;
     }
     CoreSocialModule.ProcessRailSystemStateChange((RailSystemState)((RailSystemStateChanged)data).state);
 }
示例#3
0
 public void OnRailEvent(RAILEventID id, EventBase data)
 {
     WeGameHelper.WriteDebugString("OnRailEvent,id=" + id.ToString() + " ,result=" + data.result.ToString());
     if ((int)id != 3002)
     {
         return;
     }
     this.OnGameServerCreated((CreateGameServerResult)data);
 }
示例#4
0
 public static void RailEventCallBack(RAILEventID eventId, EventBase data)
 {
     //IL_0000: Unknown result type (might be due to invalid IL or missing references)
     //IL_0002: Invalid comparison between Unknown and I4
     //IL_0005: Unknown result type (might be due to invalid IL or missing references)
     //IL_000a: Unknown result type (might be due to invalid IL or missing references)
     if ((int)eventId == 2)
     {
         ProcessRailSystemStateChange(((RailSystemStateChanged)data).state);
     }
 }
示例#5
0
 public void OnRailEvent(RAILEventID id, EventBase data)
 {
     //IL_0038: Unknown result type (might be due to invalid IL or missing references)
     //IL_003e: Invalid comparison between Unknown and I4
     //IL_0042: Unknown result type (might be due to invalid IL or missing references)
     //IL_004c: Expected O, but got Unknown
     WeGameHelper.WriteDebugString("OnRailEvent,id=" + ((object)(RAILEventID)(ref id)).ToString() + " ,result=" + ((object)(RailResult)(ref data.result)).ToString());
     if ((int)id == 3002)
     {
         OnGameServerCreated((CreateGameServerResult)(object)(CreateGameServerResult)data);
     }
 }
示例#6
0
 public void OnRailEvent(RAILEventID id, EventBase data)
 {
     WeGameHelper.WriteDebugString("OnRailEvent,id=" + id.ToString() + " ,result=" + data.result.ToString());
     if (id <= 12010)
     {
         if (id != 12002)
         {
             if (id != 12003)
             {
                 if (id != 12010)
                 {
                     return;
                 }
                 this.OnFriendlistChange((RailFriendsListChanged)data);
             }
             else
             {
                 this.OnGetFriendMetaData((RailFriendsGetMetadataResult)data);
             }
         }
         else
         {
             this.OnRailSetMetaData((RailFriendsSetMetadataResult)data);
         }
     }
     else if (id <= 13503)
     {
         if (id != 13501)
         {
             if (id != 13503)
             {
                 return;
             }
             this.OnRailRespondInvation((RailUsersRespondInvitation)data);
         }
         else
         {
             this.OnRailGetUsersInfo((RailUsersInfoData)data);
         }
     }
     else if (id != 16001)
     {
         if (id != 16002)
         {
             return;
         }
         this.OnRailCreateSessionFailed((CreateSessionFailed)data);
     }
     else
     {
         this.OnRailCreateSessionRequest((CreateSessionRequest)data);
     }
 }
示例#7
0
 private void RegisterRailEvent()
 {
     RAILEventID[] railEventIdArray = new RAILEventID[4]
     {
         (RAILEventID)16001,
         (RAILEventID)16002,
         (RAILEventID)3006,
         (RAILEventID)3005
     };
     foreach (int num in railEventIdArray)
     {
         // ISSUE: method pointer
         this._callbackHelper.RegisterCallback((RAILEventID)num, new RailEventCallBackHandler(OnRailEvent));
     }
 }
示例#8
0
 public void RailEventCallBack(RAILEventID eventId, EventBase data)
 {
     if ((int)eventId != 2001)
     {
         if ((int)eventId != 2101)
         {
             return;
         }
         this._areAchievementReceived = true;
     }
     else
     {
         this._areStatsReceived = true;
     }
 }
示例#9
0
 private void RegisterRailEvent()
 {
     RAILEventID[] railEventIdArray = new RAILEventID[7]
     {
         (RAILEventID)16001,
         (RAILEventID)16002,
         (RAILEventID)13503,
         (RAILEventID)13501,
         (RAILEventID)12003,
         (RAILEventID)12002,
         (RAILEventID)12010
     };
     foreach (int num in railEventIdArray)
     {
         // ISSUE: method pointer
         this._callbackHelper.RegisterCallback((RAILEventID)num, new RailEventCallBackHandler((object)this, __methodptr(OnRailEvent)));
     }
 }
示例#10
0
 public void RailEventCallBack(RAILEventID eventId, EventBase data)
 {
     //IL_0000: Unknown result type (might be due to invalid IL or missing references)
     //IL_0006: Invalid comparison between Unknown and I4
     //IL_0008: Unknown result type (might be due to invalid IL or missing references)
     //IL_000e: Invalid comparison between Unknown and I4
     if ((int)eventId != 2001)
     {
         if ((int)eventId == 2101)
         {
             _areAchievementReceived = true;
         }
     }
     else
     {
         _areStatsReceived = true;
     }
 }
示例#11
0
 public void OnRailEvent(RAILEventID event_id, EventBase data)
 {
     WeGameHelper.WriteDebugString("OnRailEvent,id=" + event_id.ToString() + " ,result=" + data.result.ToString());
     if ((int)event_id != 3006)
     {
         if ((int)event_id != 16001)
         {
             if ((int)event_id != 16002)
             {
                 return;
             }
             this.OnCreateSessionFailed((CreateSessionFailed)data);
         }
         else
         {
             this.OnCreateSessionRequest((CreateSessionRequest)data);
         }
     }
     else
     {
         this.UpdateUserStateBySessionAuthResult((GameServerStartSessionWithPlayerResponse)data);
     }
 }
示例#12
0
 public void OnRailEvent(RAILEventID id, EventBase data)
 {
     //IL_0038: Unknown result type (might be due to invalid IL or missing references)
     //IL_003e: Invalid comparison between Unknown and I4
     //IL_0040: Unknown result type (might be due to invalid IL or missing references)
     //IL_0046: Invalid comparison between Unknown and I4
     //IL_0048: Unknown result type (might be due to invalid IL or missing references)
     //IL_004e: Invalid comparison between Unknown and I4
     //IL_0050: Unknown result type (might be due to invalid IL or missing references)
     //IL_0056: Invalid comparison between Unknown and I4
     //IL_0059: Unknown result type (might be due to invalid IL or missing references)
     //IL_005f: Invalid comparison between Unknown and I4
     //IL_0061: Unknown result type (might be due to invalid IL or missing references)
     //IL_0067: Invalid comparison between Unknown and I4
     //IL_0069: Unknown result type (might be due to invalid IL or missing references)
     //IL_006f: Invalid comparison between Unknown and I4
     //IL_0072: Unknown result type (might be due to invalid IL or missing references)
     //IL_0078: Invalid comparison between Unknown and I4
     //IL_007a: Unknown result type (might be due to invalid IL or missing references)
     //IL_0080: Invalid comparison between Unknown and I4
     //IL_0085: Unknown result type (might be due to invalid IL or missing references)
     //IL_008f: Expected O, but got Unknown
     //IL_0092: Unknown result type (might be due to invalid IL or missing references)
     //IL_009c: Expected O, but got Unknown
     //IL_009f: Unknown result type (might be due to invalid IL or missing references)
     //IL_00a9: Expected O, but got Unknown
     //IL_00ac: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b6: Expected O, but got Unknown
     //IL_00b9: Unknown result type (might be due to invalid IL or missing references)
     //IL_00c3: Expected O, but got Unknown
     //IL_00c6: Unknown result type (might be due to invalid IL or missing references)
     //IL_00d0: Expected O, but got Unknown
     //IL_00d3: Unknown result type (might be due to invalid IL or missing references)
     //IL_00dd: Expected O, but got Unknown
     WeGameHelper.WriteDebugString("OnRailEvent,id=" + ((object)(RAILEventID)(ref id)).ToString() + " ,result=" + ((object)(RailResult)(ref data.result)).ToString());
     if ((int)id <= 12010)
     {
         if ((int)id != 12002)
         {
             if ((int)id != 12003)
             {
                 if ((int)id == 12010)
                 {
                     OnFriendlistChange((RailFriendsListChanged)(object)(RailFriendsListChanged)data);
                 }
             }
             else
             {
                 OnGetFriendMetaData((RailFriendsGetMetadataResult)(object)(RailFriendsGetMetadataResult)data);
             }
         }
         else
         {
             OnRailSetMetaData((RailFriendsSetMetadataResult)(object)(RailFriendsSetMetadataResult)data);
         }
     }
     else if ((int)id <= 13503)
     {
         if ((int)id != 13501)
         {
             if ((int)id == 13503)
             {
                 OnRailRespondInvation((RailUsersRespondInvitation)(object)(RailUsersRespondInvitation)data);
             }
         }
         else
         {
             OnRailGetUsersInfo((RailUsersInfoData)(object)(RailUsersInfoData)data);
         }
     }
     else if ((int)id != 16001)
     {
         if ((int)id == 16002)
         {
             OnRailCreateSessionFailed((CreateSessionFailed)(object)(CreateSessionFailed)data);
         }
     }
     else
     {
         OnRailCreateSessionRequest((CreateSessionRequest)(object)(CreateSessionRequest)data);
     }
 }