152 lines
5.4 KiB
C#
152 lines
5.4 KiB
C#
using System.Collections;
|
|
using AibisDream.FixSystem;
|
|
using Yarn.Unity;
|
|
|
|
namespace AibisDream
|
|
{
|
|
public static class BodyModuleYarnCommand
|
|
{
|
|
private static BodyModuleSystem BodyModuleSystem => FixSystemCenter.SystemDic.Get<BodyModuleSystem>();
|
|
private static OscilloscopeSystem OscilloscopeSystem => FixSystemCenter.SystemDic.Get<OscilloscopeSystem>();
|
|
|
|
private static PunchTapeSystem PunchTapeSystem => FixSystemCenter.SystemDic.Get<PunchTapeSystem>();
|
|
[YarnCommand("SetModuleState_CantStopRunning")]
|
|
public static void SetModuleState_CantStopRunning(string ModuleName,bool state)
|
|
{
|
|
BodyModuleSystem.SetModuleState_CantStopRunning(ModuleName,state);
|
|
}
|
|
[YarnCommand("ShowHeatMap")]
|
|
public static void ShowHeatMap()
|
|
{
|
|
BodyModuleSystem.ShowHeatMap();
|
|
}
|
|
[YarnCommand("HideHeatMap")]
|
|
public static void HideHeatMap()
|
|
{
|
|
BodyModuleSystem.HideHeatMap();
|
|
}
|
|
[YarnCommand("SetHeat")]
|
|
public static void SetHeat(int heatValue)
|
|
{
|
|
BodyModuleSystem.SetHeat(heatValue);
|
|
}
|
|
[YarnCommand("Temp_RemoveUF")]
|
|
public static void Temp_RemoveUF()
|
|
{
|
|
var _UFModule = BodyModuleSystem.FindBodyModuleByName("UF").gameObject;
|
|
if(_UFModule.activeInHierarchy)
|
|
{
|
|
_UFModule.SetActive(false);
|
|
}
|
|
}
|
|
[YarnCommand("Temp_RemoveUFCover")]
|
|
public static void Temp_RemoveUFCover()
|
|
{
|
|
var _UFCover = BodyModuleSystem.FindBodyModuleByName("UF").transform.Find("Cover").gameObject;
|
|
if(_UFCover.activeInHierarchy)
|
|
{
|
|
_UFCover.SetActive(false);
|
|
}
|
|
}
|
|
[YarnCommand("Temp_InstallUF")]
|
|
public static void Temp_InstallUF()
|
|
{
|
|
var _UFModule = BodyModuleSystem.FindBodyModuleByName("UF").gameObject;
|
|
if(!_UFModule.activeInHierarchy)
|
|
{
|
|
_UFModule.SetActive(true);
|
|
}
|
|
}
|
|
[YarnCommand("Temp_InstallUFCover")]
|
|
public static void Temp_InstallUFCover()
|
|
{
|
|
var _UFCover = BodyModuleSystem.FindBodyModuleByName("UF").transform.Find("Cover").gameObject;
|
|
if(!_UFCover.activeInHierarchy)
|
|
{
|
|
_UFCover.SetActive(true);
|
|
}
|
|
}
|
|
[YarnCommand("Temp_InstallChip")]
|
|
public static void Temp_InstallChip()
|
|
{
|
|
var _UFCover = BodyModuleSystem.FindBodyModuleByName("Color").transform.Find("Chip").gameObject;
|
|
if(!_UFCover.activeInHierarchy)
|
|
{
|
|
_UFCover.SetActive(true);
|
|
}
|
|
}
|
|
[YarnCommand("Temp_RemoveChip")]
|
|
public static void Temp_RemoveChip()
|
|
{
|
|
var _UFCover = BodyModuleSystem.FindBodyModuleByName("Color").transform.Find("Chip").gameObject;
|
|
if(_UFCover.activeInHierarchy)
|
|
{
|
|
_UFCover.SetActive(false);
|
|
}
|
|
}
|
|
[YarnCommand("SetSocketAvailable")]
|
|
public static void SetSocketAvailable(string moduleName,bool isAvailable)
|
|
{
|
|
var targetModule = BodyModuleSystem.FindBodyModuleByName(moduleName);
|
|
targetModule.SetSocketAvailable(isAvailable);
|
|
}
|
|
[YarnCommand("ModuleHightLight")]
|
|
public static void ModuleHightLight(string moduleName,bool enable)
|
|
{
|
|
var targetModule = BodyModuleSystem.FindBodyModuleByName(moduleName);
|
|
targetModule.Highlight(enable);
|
|
}
|
|
[YarnCommand("ModuleAlarm")]
|
|
public static void ModuleAlarm(string moduleName,bool enable)
|
|
{
|
|
var targetModule = BodyModuleSystem.FindBodyModuleByName(moduleName);
|
|
targetModule.Alarm(enable);
|
|
}
|
|
[YarnCommand("MessageBoxSetError")]
|
|
public static void MessageBoxSetError()
|
|
{
|
|
OscilloscopeSystem.MessageBoxSetError();
|
|
}
|
|
[YarnCommand("MessageBoxSetWarning")]
|
|
public static void MessageBoxSetWarning()
|
|
{
|
|
OscilloscopeSystem.MessageBoxSetWarning();
|
|
}
|
|
[YarnCommand("MessageBoxSetNormal")]
|
|
public static void MessageBoxSetNormal()
|
|
{
|
|
OscilloscopeSystem.MessageBoxSetNormal();
|
|
}
|
|
[YarnCommand("MessageBoxSetChecking")]
|
|
public static void MessageBoxSetChecking()
|
|
{
|
|
OscilloscopeSystem.MessageBoxSetChecking();
|
|
}
|
|
[YarnCommand("MessageBoxSetNull")]
|
|
public static void MessageBoxSetNull()
|
|
{
|
|
OscilloscopeSystem.MessageBoxSetNull();
|
|
}
|
|
[YarnCommand("MessageBoxSetText")]
|
|
public static void MessageBoxSetText(string text)
|
|
{
|
|
OscilloscopeSystem.MessageBoxSetText(text);
|
|
}
|
|
[YarnCommand("EnableDeepInButton")]
|
|
public static void EnableDeepInButton()
|
|
{
|
|
OscilloscopeSystem.StartCoroutine(OscilloscopeSystem.EnableDeepInButton());
|
|
}
|
|
[YarnCommand("DisableDeepInButton")]
|
|
public static void DisableDeepInButton()
|
|
{
|
|
OscilloscopeSystem.StartCoroutine(OscilloscopeSystem.DisableDeepInButton());
|
|
}
|
|
[YarnCommand("PrintPunchTapes")]
|
|
public static IEnumerator PrintPunchTapes(int count)
|
|
{
|
|
yield return PunchTapeSystem.StartCoroutine(PunchTapeSystem.PrintPunchTapes(count));
|
|
}
|
|
}
|
|
}
|