public bool CheckCondition() { switch (type) { case 0: return(IntCompare(parameter1.ReturnInt(null), parameter2.ReturnInt(null))); case 1: return(BoolCompare(parameter1.ReturnBool(null), parameter2.ReturnBool(null))); case 2: return(StringCompare(parameter1.ReturnString(null), parameter2.ReturnString(null))); case 3: return(FloatCompare(parameter1.ReturnFloat(null), parameter2.ReturnFloat(null))); case 4: return(PlayerCompare(parameter1.ReturnPlayer(null), parameter2.ReturnPlayer(null))); case 5: return(TitanCompare(parameter1.ReturnTitan(null), parameter2.ReturnTitan(null))); default: return(false); } }
public bool ReturnBool(object sentObject) { object obj = sentObject; if (parameters != null) { obj = parameters; } switch (helperClass) { case 0: return((bool)obj); case 5: switch (helperType) { case 1: return((bool)obj); case 0: { int value3 = (int)obj; return(Convert.ToBoolean(value3)); } case 2: { string value2 = (string)obj; return(Convert.ToBoolean(value2)); } case 3: { float value = (float)obj; return(Convert.ToBoolean(value)); } default: return(false); } case 1: { RCActionHelper rCActionHelper2 = (RCActionHelper)obj; switch (helperType) { case 1: return((bool)FengGameManagerMKII.BoolVariables[rCActionHelper2.ReturnString(null)]); case 0: return(nextHelper.ReturnBool(FengGameManagerMKII.IntVariables[rCActionHelper2.ReturnString(null)])); case 2: return(nextHelper.ReturnBool(FengGameManagerMKII.StringVariables[rCActionHelper2.ReturnString(null)])); case 3: return(nextHelper.ReturnBool(FengGameManagerMKII.FloatVariables[rCActionHelper2.ReturnString(null)])); case 4: return(nextHelper.ReturnBool(FengGameManagerMKII.PlayerVariables[rCActionHelper2.ReturnString(null)])); case 5: return(nextHelper.ReturnBool(FengGameManagerMKII.TitanVariables[rCActionHelper2.ReturnString(null)])); default: return(false); } } case 2: { PhotonPlayer photonPlayer = (PhotonPlayer)obj; if (photonPlayer != null) { switch (helperType) { case 0: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.Team])); case 1: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.RCTeam])); case 2: return(!(bool)photonPlayer.customProperties[PhotonPlayerProperty.IsDead]); case 3: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.IsTitan])); case 4: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.Kills])); case 5: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.Deaths])); case 6: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.MaxDamage])); case 7: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.TotalDamage])); case 8: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.CustomInt])); case 9: return((bool)photonPlayer.customProperties[PhotonPlayerProperty.CustomBool]); case 10: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.CustomString])); case 11: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.CustomFloat])); case 14: { int iD4 = photonPlayer.Id; if (FengGameManagerMKII.HeroHash.ContainsKey(iD4)) { HERO hERO = (HERO)FengGameManagerMKII.HeroHash[iD4]; return(nextHelper.ReturnBool(hERO.transform.position.x)); } return(false); } case 15: { int iD3 = photonPlayer.Id; if (FengGameManagerMKII.HeroHash.ContainsKey(iD3)) { HERO hERO = (HERO)FengGameManagerMKII.HeroHash[iD3]; return(nextHelper.ReturnBool(hERO.transform.position.y)); } return(false); } case 16: { int iD2 = photonPlayer.Id; if (FengGameManagerMKII.HeroHash.ContainsKey(iD2)) { HERO hERO = (HERO)FengGameManagerMKII.HeroHash[iD2]; return(nextHelper.ReturnBool(hERO.transform.position.z)); } return(false); } case 12: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.Name])); case 13: return(nextHelper.ReturnBool(photonPlayer.customProperties[PhotonPlayerProperty.Guild])); case 17: { int iD = photonPlayer.Id; if (FengGameManagerMKII.HeroHash.ContainsKey(iD)) { HERO hERO = (HERO)FengGameManagerMKII.HeroHash[iD]; return(nextHelper.ReturnBool(hERO.rigidbody.velocity.magnitude)); } return(false); } } } return(false); } case 3: { TITAN tITAN = (TITAN)obj; if (tITAN != null) { switch (helperType) { case 0: return(nextHelper.ReturnBool(tITAN.abnormalType)); case 1: return(nextHelper.ReturnBool(tITAN.myLevel)); case 2: return(nextHelper.ReturnBool(tITAN.currentHealth)); case 3: return(nextHelper.ReturnBool(tITAN.transform.position.x)); case 4: return(nextHelper.ReturnBool(tITAN.transform.position.y)); case 5: return(nextHelper.ReturnBool(tITAN.transform.position.z)); } } return(false); } case 4: { RCActionHelper rCActionHelper = (RCActionHelper)obj; RCRegion rCRegion = (RCRegion)FengGameManagerMKII.RCRegions[rCActionHelper.ReturnString(null)]; switch (helperType) { case 0: return(nextHelper.ReturnBool(rCRegion.GetRandomX())); case 1: return(nextHelper.ReturnBool(rCRegion.GetRandomY())); case 2: return(nextHelper.ReturnBool(rCRegion.GetRandomZ())); default: return(false); } } default: return(false); } }