public GreaterThanFilterObject() { this.Category = "Filter"; this.ShortSign = ">"; this.Name = "GreaterThan"; _value = new SimulationValue(); _value.SimulationValueType = SimulationValue.ESimulationValueType.Bool; _value.value = false; }
public AddObject() { this.Category = "basics"; this.ShortSign = "+"; this.Name = "Add"; _value = new SimulationValue(); _value.SimulationValueType = SimulationValue.ESimulationValueType.Int; _value.value = 0; }
public OrObject() { this.Category = "Gatter"; this.ShortSign = "Or"; this.Name = "Or Object"; _value = new SimulationValue(); _value.SimulationValueType = SimulationValue.ESimulationValueType.Bool; _value.value = false; }
public MultiplyObject() { this.Category = "basics"; this.ShortSign = "*"; this.Name = "Multiply"; _value = new SimulationValue(); _value.SimulationValueType = SimulationValue.ESimulationValueType.Int; _value.value = 0; }
public NandObject() { this.Category = "Gatter"; this.ShortSign = "nand"; this.Name = "Nand Object"; _value = new SimulationValue(); _value.SimulationValueType = SimulationValue.ESimulationValueType.Bool; _value.value = true; }
public EqualsFilterObject() { this.Category = "Filter"; this.ShortSign = "=="; this.Name = "Equals"; _value = new SimulationValue(); _value.SimulationValueType = SimulationValue.ESimulationValueType.Bool; _value.value = false; }
protected override void SetToIni() { SaveFfbToIni(Ini); Ini["ASSETTO_CORSA"].Set("SIMULATION_VALUE", SimulationValue.ToDoublePercentage()); Ini["AC_APPS"].Set("ENABLE_DEV_APPS", DeveloperApps); Ini["CAMERA"].Set("ALLOW_FREE_CAMERA", AllowFreeCamera); Ini["LOG"].Set("SUPPRESS", !Logging); Ini["DRIVER"].Set("HIDE", HideDriver); Ini["SCREENSHOT"].Set("FORMAT", ScreenshotFormat); Ini["MIRRORS"].Set("FOV", MirrorsFieldOfView); Ini["MIRRORS"].Set("FAR_PLANE", MirrorsFarPlane); }
public override void Init() { //Create circle GraphicsSettings.Text1 = "#"; GraphicsSettings.Text2 = ""; //Show value select screen (needs to be in the STA thread) OnScreenElementModify((Action)(() => { ConstantValueObjectWindow cow = new ConstantValueObjectWindow(); cow.ShowDialog(); this._value = new SimulationValue(); _value.value = cow.Value; _value.SimulationValueType = cow.ValueType; GraphicsSettings.Text2 = _value.ToString(); }),null); }
public override void SimulationTick() { if (this.SourceObjects.Count > 1) { GraphicsSettings.CircleColor = ObjectCircle.EColor.red; Destinations.Clear(); AdditionalDirections.Clear(); _value = null; } else if (SourceObjects.Count == 1) { GraphicsSettings.CircleColor = ObjectCircle.EColor.white; _value = SourceObjects[0].GetValue(); //Set directions //original objects destination AdditionalDirections.Clear(); AdditionalDirections.Add(SourceObjects[0].LastTableObject.DirectionVector); //own direction is set automatically in the tableObjectvector //set destinations (two destinations: the first is the own, the second the original. null, if no possible destination) Destinations.Clear(); //own beam if (PossibleDestinations.Count > 0) { Destinations.Add(PossibleDestinations[0]); } else { Destinations.Add(null); } //original beam if (PossibleAdditionalDestinations.Count > 0) { if (PossibleAdditionalDestinations[0].Count > 0) { Destinations.Add(null); //own beam doesn't have a destination Destinations.Add(PossibleAdditionalDestinations[0][0]); } else { Destinations.Add(null); } } else { Destinations.Add(null); } } else { GraphicsSettings.CircleColor = ObjectCircle.EColor.white; Destinations.Clear(); Destinations.Add(null); Destinations.Add(null); AdditionalDirections.Clear(); _value = null; } }