protected override void Awake() { ModContext = SingleInstance <Logic> .Instance; machineHandler = ModContext.GetMachineHandler(this); base.Awake(); LerpMode = AddToggle("Lerp", "lerp_mode", "output as linear interpolation to closest object", false); }
protected override void Awake() { ModContext = SingleInstance <Logic> .Instance; machineHandler = ModContext.GetMachineHandler(this); base.Awake(); maxSpeedSlider = AddSliderUnclamped("<" + speedSlider.DisplayName, speedSlider.Key + "_2", 0.0f, 0.0f, 250f); speedSlider.DisplayName = ">" + speedSlider.DisplayName; }
protected void Awake() { ModContext = SingleInstance <Logic> .Instance; BB = GetComponent <BlockBehaviour>(); machineHandler = ModContext.GetMachineHandler(BB); rigidbody = GetComponent <Rigidbody>(); SafeAwake(); }
public override void SafeAwake() { ModContext = SingleInstance <Logic> .Instance; Gas = AddSlider("Gas", "gas", 100.0f, 1.0f, MaxGas); Script = new ScriptText("script", "script"); BlockBehaviour.AddCustom(Script); // DO NOT CALL AddPIO here, because it sends invalid machine state in multiverse after simulation start machineHandler = ModContext.GetMachineHandler(BlockBehaviour); machineHandler.AddCpuBlock(this); }
protected override void Awake() { ModContext = SingleInstance <Logic> .Instance; machineHandler = ModContext.GetMachineHandler(this); base.Awake(); LerpMode = AddToggle("Lerp", "lerp_mode", "output as linear interpolation between selected angles", false); if (isSimulating) { targetDir = base.transform.up; } }
protected override void Awake() { ModContext = SingleInstance <Logic> .Instance; machineHandler = ModContext.GetMachineHandler(this); base.Awake(); if (MEmulateKey.Text.DisplayName.Length > 8) { MEmulateKey.Text.DisplayName = "EMU"; } AddText(MActivateKey.Text); AddText(MEmulateKey.Text); LerpMode = AddToggle("Lerp", "lerp_mode", "output as linear interpolation to closest object", false); }
protected override void Awake() { ModContext = SingleInstance <Logic> .Instance; machineHandler = ModContext.GetMachineHandler(this); base.Awake(); if (MEmulateKey.Text.DisplayName.Length > 8) { MEmulateKey.Text.DisplayName = "EMU"; } AddText(MAKey.Text); AddText(MBKey.Text); AddText(MEmulateKey.Text); }
protected override void Awake() { ModContext = SingleInstance <Logic> .Instance; machineHandler = ModContext.GetMachineHandler(this); base.Awake(); if (MEmulateKey.Text.DisplayName.Length > 8) { MEmulateKey.Text.DisplayName = "EMU"; } AddText(MActivateKey.Text); AddText(MEmulateKey.Text); MaxHeigthSlider = AddSliderUnclamped("<" + heightSlider.DisplayName, heightSlider.Key + "_2", 0.0f, 0.0f, 250f); heightSlider.DisplayName = ">" + heightSlider.DisplayName; }
protected override void Awake() { ModContext = SingleInstance <Logic> .Instance; machineHandler = ModContext.GetMachineHandler(this); base.Awake(); if (MEmulateKey.Text.DisplayName.Length > 8) { MEmulateKey.Text.DisplayName = "EMU"; } AddText(MActivateKey.Text); AddText(MEmulateKey.Text); LerpMode = AddToggle("Lerp", "lerp_mode", "output as linear interpolation between selected angles", false); if (isSimulating) { targetDir = base.transform.up; } }
public void AddNewMachine() { DbConnector conn = new DbConnector(); string resp = conn.connect(); Assert.AreEqual("Done", resp); Machine machine = new Machine(); machine.MachineType = "Harvester"; machine.ModelName = "turbulance400"; machine.MachineStatus = "Available"; machine.Price = 1522.00M; MachineHandler mechHandlr = new MachineHandler(); int resp2 = mechHandlr.addNewMachine(conn.getConn(), machine); Assert.AreEqual(1, resp2); }
public SubmitClientInfoJob(NetClient client, MachineHandler machineHandler) { _client = client; _machineHandler = machineHandler; }
protected override void Awake() { ModContext = SingleInstance <Logic> .Instance; machineHandler = ModContext.GetMachineHandler(this); base.Awake(); }
public MachineService(IUnitOfWork uow, MachineHandler handler) { _uow = uow; _handler = handler; }