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
+30
View File
@@ -0,0 +1,30 @@
using Easter2025.Components;
using Kitchen;
using KitchenMods;
using Unity.Entities;
namespace Easter2025.Systems
{
public class SpawnRoamingBunnies : StartOfDaySystem, IModSystem
{
protected override void OnUpdate()
{
if (!HasSingleton<SHasTriggeredBunnies>()) return;
SpawnBunny(-5, Mod.ROAMING_RED_BUNNY_VIEW);
SpawnBunny(-6, Mod.ROAMING_GREEN_BUNNY_VIEW);
SpawnBunny(-7, Mod.ROAMING_BLUE_BUNNY_VIEW);
}
private void SpawnBunny(int position, ViewType viewType)
{
Entity entity = EntityManager.CreateEntity(typeof(CPosition), typeof(CRequiresView), typeof(CBunny));
Set(entity, new CPosition(-0.5f, 0, position));
Set(entity, new CRequiresView
{
Type = viewType,
ViewMode = ViewMode.World,
PhysicsDriven = true
});
}
}
}