Ver.0.3.0.33

This commit is contained in:
2025-07-08 08:32:46 +00:00
parent 99f4dd67c2
commit 0ad5e29917
6831 changed files with 695623 additions and 234455 deletions
@@ -1,21 +1,28 @@
using System.Collections;
using AibisDream.FixSystem;
using AibisDream.Framework;
using Yarn.Unity;
using UnityEngine;
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)
[YarnCommand("enable_cut")]
public static void EnableCut(string moduleName)
{
BodyModuleSystem.SetModuleState_CantStopRunning(moduleName, state);
Reset_Plug();
var cutModule = BodyModuleSystem.FindBodyModuleByName(moduleName);
//cutModule.EnableCut();
}
[YarnCommand("Reset_Plug")]
public static void Reset_Plug()
{
BodyModuleSystem.CableSystem.ResetPlug();
}
[YarnCommand("ShowHeatMap")]
@@ -42,12 +49,12 @@ namespace AibisDream
var _UFModule = BodyModuleSystem.FindBodyModuleByName("UF").transform.GetComponent<UFModule>();
_UFModule.RemoveUFModule();
BodyModuleSystem.FindBodyModuleByName("UF").SetSocketAvailable(false);
}
[YarnCommand("Temp_RemoveUFCover")]
public static void Temp_RemoveUFCover()
{ BodyModuleSystem.CableSystem.ResetPlug();
{
BodyModuleSystem.CableSystem.ResetPlug();
var _UFModule = BodyModuleSystem.FindBodyModuleByName("UF").transform.GetComponent<UFModule>();
_UFModule.RemoveUFCover();
}
@@ -70,20 +77,24 @@ namespace AibisDream
[YarnCommand("Temp_InstallChip")]
public static void Temp_InstallChip()
{
var _chipModule = BodyModuleSystem.FindBodyModuleByName("Color").transform.GetComponent<ChipModule>();
var _chipModule = BodyModuleSystem.FindBodyModuleByName("Color").transform.GetComponent<ChipModule>();
_chipModule.InstallChipModule();
}
[YarnCommand("Temp_RemoveChip")]
public static void Temp_RemoveChip()
{
var _chipModule = BodyModuleSystem.FindBodyModuleByName("Color").transform.GetComponent<ChipModule>();
_chipModule.RemoveChipModule();
var _chipModule = BodyModuleSystem.FindBodyModuleByName("Color")?.transform.GetComponent<ChipModule>();
if (_chipModule != null)
{
_chipModule.RemoveChipModule();
}
}
[YarnCommand("Temp_InstallUFColor")]
public static void Temp_InstallUFChip()
{
var _chipModule = BodyModuleSystem.FindBodyModuleByName("UF").transform.GetComponent<UFModule>();
var _chipModule = BodyModuleSystem.FindBodyModuleByName("UF").transform.GetComponent<UFModule>();
_chipModule.InstallUFColor();
}
@@ -105,7 +116,14 @@ namespace AibisDream
public static void ModuleHightLight(string moduleName, bool enable)
{
var targetModule = BodyModuleSystem.FindBodyModuleByName(moduleName);
targetModule.Highlight(enable);
if (targetModule != null)
{
targetModule.Highlight(enable);
}
else
{
Debug.LogWarning($"Module {moduleName} not found!");
}
}
[YarnCommand("ModuleAlarm")]
@@ -115,70 +133,52 @@ namespace AibisDream
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));
}
[YarnCommand("HidePunchTapeGroup")]
public static IEnumerator HidePunchTapeGroup()
[YarnCommand("DropCable")]
public static void DropCable()
{
yield return PunchTapeSystem.StartCoroutine(PunchTapeSystem.Temp_HidePunchTapeGroup());
BodyModuleSystem.CableSystem.DropDownCable();
}
[YarnCommand("ShowPunchTapeGroup")]
public static void ShowPunchTapeGroup()
[YarnCommand("RetractCable")]
public static void RetractCable()
{
PunchTapeSystem.Temp_showPunchTapeGroup();
BodyModuleSystem.CableSystem.PullUpCable();
}
[YarnCommand("StartHeadBreathing")]
public static void StartHeadBreathing()
{
BodyModuleSystem.StartBreathing();
}
[YarnCommand("StopHeadBreathing")]
public static void StopHeadBreathing()
{
BodyModuleSystem.StopBreathing();
}
[YarnCommand("TriggerHeadPainShake")]
public static void TriggerHeadPainShake()
{
BodyModuleSystem.TriggerPainShake();
}
[YarnCommand("StartHeadContinuousPain")]
public static void StartHeadContinuousPain()
{
BodyModuleSystem.StartContinuousPain();
}
[YarnCommand("StopHeadContinuousPain")]
public static void StopHeadContinuousPain()
{
BodyModuleSystem.StopContinuousPain();
}
}
}