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); }
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); } }
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); } }