Initial Commit

This commit is contained in:
Lachlan Leone
2026-04-05 18:57:16 +10:00
commit c3a5153a56
691 changed files with 85219 additions and 0 deletions
@@ -0,0 +1,48 @@
using System.Collections.Generic;
using Easter2025.Components;
using Easter2025.Customs.Generics;
using Easter2025.Utilies;
using Easter2025.Views;
using Easter2025.Views.Local;
using Kitchen;
using KitchenData;
using KitchenLib.Utils;
using Shapes;
using UnityEngine;
namespace Easter2025.Customs.Appliances.SceneAppliances
{
public class Bush : GenericSceneAppliance
{
public override string UniqueNameID => "Bush";
public override GameObject Prefab => Mod.Bundle.LoadAsset<GameObject>("VanillaBush").AssignMaterialsByNames();
public override List<IApplianceProperty> Properties => new List<IApplianceProperty>
{
new CEggBush(),
new CCanHideItem(),
new CItemHolder(),
new CImmovable(),
new CTakesDuration
{
Total = 1,
Manual = true,
Mode = InteractionMode.Items
},
new CDisplayDuration
{
Process = GDOReferences.SearchBush.ID
}
};
public override bool IsNonInteractive => false;
public override void OnRegister(Appliance gameDataObject)
{
base.OnRegister(gameDataObject);
HoldPointContainer holdPointContainer = gameDataObject.Prefab.AddComponent<HoldPointContainer>();
holdPointContainer.HoldPoint = gameDataObject.Prefab.GetChild("HoldPoint").transform;
BushView bushView = gameDataObject.Prefab.AddComponent<BushView>();
bushView.Animator = gameDataObject.Prefab.GetComponentInChildren<Animator>();
}
}
}
@@ -0,0 +1,12 @@
using Easter2025.Customs.Generics;
using KitchenLib.Utils;
using UnityEngine;
namespace Easter2025.Customs.Appliances.SceneAppliances
{
public class EasterGround : GenericSceneAppliance
{
public override string UniqueNameID => "EasterGround";
public override GameObject Prefab => Mod.Bundle.LoadAsset<GameObject>("EasterGround").AssignMaterialsByNames();
}
}
@@ -0,0 +1,31 @@
using System.Collections.Generic;
using Easter2025.Customs.Generics;
using Easter2025.Views.Local;
using KitchenData;
using KitchenLib.Utils;
using UnityEngine;
namespace Easter2025.Customs.Appliances.SceneAppliances
{
public class EasterTree : GenericSceneAppliance
{
public override string UniqueNameID => "EasterTree";
public override GameObject Prefab => Mod.Bundle.LoadAsset<GameObject>("EasterTree").AssignMaterialsByNames();
public override void OnRegister(Appliance gameDataObject)
{
EggPileView eggPileView = Prefab.AddComponent<EggPileView>();
eggPileView.EggContainers = new List<GameObject>
{
gameDataObject.Prefab.GetChild("Eggs/Egg Container 1"),
gameDataObject.Prefab.GetChild("Eggs/Egg Container 2"),
gameDataObject.Prefab.GetChild("Eggs/Egg Container 3"),
gameDataObject.Prefab.GetChild("Eggs/Egg Container 4"),
gameDataObject.Prefab.GetChild("Eggs/Egg Container 5"),
gameDataObject.Prefab.GetChild("Eggs/Egg Container 6"),
};
base.OnRegister(gameDataObject);
}
}
}
@@ -0,0 +1,30 @@
using Easter2025.Customs.Generics;
using Easter2025.Views.Local;
using KitchenData;
using KitchenLib.Utils;
using UnityEngine;
namespace Easter2025.Customs.Appliances.SceneAppliances
{
public class EggCobblestone : GenericSceneAppliance
{
public override string UniqueNameID => "EggCobblestone";
public override GameObject Prefab => Mod.Bundle.LoadAsset<GameObject>("EggCobblestone").AssignMaterialsByNames();
public override void OnRegister(Appliance gameDataObject)
{
base.OnRegister(gameDataObject);
RandomRotationView randomRotationView = gameDataObject.Prefab.AddComponent<RandomRotationView>();
randomRotationView.Container = gameDataObject.Prefab.GetChild("Container");
randomRotationView.min = 0;
randomRotationView.max = 360;
RandomPlacementView randomPlacementView = gameDataObject.Prefab.AddComponent<RandomPlacementView>();
randomPlacementView.Container = gameDataObject.Prefab.GetChild("Container");
randomPlacementView.min = new(-0.1f,0,-0.1f);
randomPlacementView.max = new (0.1f,0,0.1f);
}
}
}
@@ -0,0 +1,31 @@
using System.Collections.Generic;
using Easter2025.Customs.Generics;
using Easter2025.Views.Local;
using KitchenData;
using KitchenLib.Utils;
using UnityEngine;
namespace Easter2025.Customs.Appliances.SceneAppliances
{
public class EggPile : GenericSceneAppliance
{
public override string UniqueNameID => "EggPile";
public override GameObject Prefab => Mod.Bundle.LoadAsset<GameObject>("EggPile").AssignMaterialsByNames();
public override void OnRegister(Appliance gameDataObject)
{
base.OnRegister(gameDataObject);
EggPileView eggPileView = gameDataObject.Prefab.AddComponent<EggPileView>();
eggPileView.EggContainers = new List<GameObject>
{
gameDataObject.Prefab.GetChild("EggContainer/Egg_1"),
gameDataObject.Prefab.GetChild("EggContainer/Egg_2"),
gameDataObject.Prefab.GetChild("EggContainer/Egg_3"),
};
RandomRotationView randomRotationView = gameDataObject.Prefab.AddComponent<RandomRotationView>();
randomRotationView.Container = gameDataObject.Prefab.GetChild("EggContainer");
}
}
}