Day1Day2重构基本完成

This commit is contained in:
2024-12-23 23:47:26 +08:00
parent 4e08fda3e6
commit 6341fbe46f
30 changed files with 2658 additions and 367 deletions
@@ -0,0 +1,87 @@
using System.Collections;
using AibisDream.FixSystem;
using Yarn.Unity;
namespace AibisDream
{
public static class BodyModuleYarnCommand
{
private static BodyModuleSystem BodyModuleSystem => FixSystemCenter.SystemDic.Get<BodyModuleSystem>();
[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("Module Pic").gameObject;
if(!_UFCover.activeInHierarchy)
{
_UFCover.SetActive(true);
}
}
[YarnCommand("Temp_RemoveChip")]
public static void Temp_RemoveChip()
{
var _UFCover = BodyModuleSystem.FindBodyModuleByName("Color").transform.Find("Module Pic").gameObject;
if(_UFCover.activeInHierarchy)
{
_UFCover.SetActive(false);
}
}
}
}