private bool SetIntStat(string name, int value) { IRailPlayerStats myPlayerStats = this.GetMyPlayerStats(); RailResult railResult = (RailResult)1; if (myPlayerStats != null) { railResult = myPlayerStats.SetStatValue(name, value); } return(railResult == 0); }
public override bool IsAchievementCompleted(string name) { bool flag = false; RailResult railResult = (RailResult)1; IRailPlayerAchievement playerAchievement = this.GetMyPlayerAchievement(); if (playerAchievement != null) { railResult = playerAchievement.HasAchieved(name, out flag); } return(flag && railResult == 0); }
public override bool Delete(string path) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Invalid comparison between Unknown and I4 lock (ioLock) { RailResult val = rail_api.RailFactory().RailStorageHelper().RemoveFile(path); return((int)val == 0); } }
private bool SetIntStat(string name, int value) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Invalid comparison between Unknown and I4 IRailPlayerStats myPlayerStats = GetMyPlayerStats(); RailResult val = (RailResult)1; if (myPlayerStats != null) { val = myPlayerStats.SetStatValue(name, value); } return((int)val == 0); }
private void UpdateUserStateBySessionAuthResult(GameServerStartSessionWithPlayerResponse data) { RailID remoteRailId = (RailID)data.remote_rail_id; RailResult result = (RailResult)((EventBase)data).result; if (!this._connectionStateMap.ContainsKey(remoteRailId)) { return; } if (result == null) { WeGameHelper.WriteDebugString("UpdateUserStateBySessionAuthResult Auth Success"); this.BroadcastConnectedUsers(); } else { WeGameHelper.WriteDebugString("UpdateUserStateBySessionAuthResult Auth Failed"); this.CloseAndUpdateUserState(remoteRailId); } }
public override bool IsAchievementCompleted(string name) { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Invalid comparison between Unknown and I4 bool flag = false; RailResult val = (RailResult)1; IRailPlayerAchievement myPlayerAchievement = GetMyPlayerAchievement(); if (myPlayerAchievement != null) { val = myPlayerAchievement.HasAchieved(name, out flag); } if (flag) { return((int)val == 0); } return(false); }
private void UpdateUserStateBySessionAuthResult(GameServerStartSessionWithPlayerResponse data) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) RailID remote_rail_id = data.remote_rail_id; RailResult result = ((EventBase)data).result; if (_connectionStateMap.ContainsKey(remote_rail_id)) { if ((int)result == 0) { WeGameHelper.WriteDebugString("UpdateUserStateBySessionAuthResult Auth Success"); BroadcastConnectedUsers(); } else { WeGameHelper.WriteDebugString("UpdateUserStateBySessionAuthResult Auth Failed"); CloseAndUpdateUserState(remote_rail_id); } } }