Initial Commit

This commit is contained in:
Lachlan Leone
2024-01-20 20:00:35 +11:00
commit d78ae93c97
70 changed files with 3212 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
using KitchenMods;
namespace Pets.Components
{
public struct CCurrentSpeed : IModComponent
{
public float speed;
}
}
+15
View File
@@ -0,0 +1,15 @@
using KitchenMods;
using Pets.Enums;
namespace Pets.Components
{
public struct CDefaultState : IModComponent
{
public CDefaultState(PetState state)
{
State = state;
}
public readonly PetState State;
}
}
+9
View File
@@ -0,0 +1,9 @@
using KitchenMods;
namespace Pets.Components
{
public struct CDisplayPet : IModComponent
{
public int index;
}
}
+9
View File
@@ -0,0 +1,9 @@
using KitchenMods;
namespace Pets.Components
{
public struct CHasDisplayPet : IModComponent
{
}
}
+15
View File
@@ -0,0 +1,15 @@
using Pets.Enums;
using Unity.Collections;
using Unity.Entities;
namespace Pets.Components
{
public struct CPet : IComponentData
{
public PetState State;
public Entity Owner;
public int PetLinkId;
public int PetType;
public FixedString64 PetName;
}
}
+10
View File
@@ -0,0 +1,10 @@
using KitchenData;
using KitchenMods;
namespace Pets.Components
{
public struct CPetBed : IModComponent, IApplianceProperty
{
}
}
+10
View File
@@ -0,0 +1,10 @@
using KitchenMods;
namespace Pets.Components
{
public struct CRequestNameChange : IModComponent
{
public int Source;
public bool IsTriggered;
}
}
+10
View File
@@ -0,0 +1,10 @@
using KitchenMods;
namespace Pets.Components
{
public struct CRequestStateChange : IModComponent
{
public int PlayerID;
public int StateID;
}
}
+12
View File
@@ -0,0 +1,12 @@
using KitchenMods;
using Unity.Entities;
namespace Pets.Components.Creation
{
public struct CLinkedPet : IModComponent
{
public int PetType;
public Entity PetEntity;
public int PetLinkId;
}
}
+10
View File
@@ -0,0 +1,10 @@
using KitchenMods;
namespace Pets.Components.Creation
{
public struct CRequestedPet : IModComponent
{
public int player;
public int pet;
}
}
+9
View File
@@ -0,0 +1,9 @@
using KitchenMods;
namespace Pets.Components.Creation
{
public struct CRequiresPet : IModComponent
{
public int PetType;
}
}
+11
View File
@@ -0,0 +1,11 @@
using Kitchen;
using KitchenMods;
namespace Pets.Components.Menu
{
public struct CPetEditorInfo : IModComponent
{
public InputIdentifier Player;
public bool IsComplete;
}
}
+11
View File
@@ -0,0 +1,11 @@
using KitchenMods;
using Unity.Entities;
namespace Pets.Components.Menu
{
public struct CTriggerPetEditor : IModComponent
{
public bool IsTriggered;
public Entity TriggerEntity;
}
}
+10
View File
@@ -0,0 +1,10 @@
using Pets.Interfaces;
using Unity.Collections;
namespace Pets.Components.Properties
{
public struct CActivities : IPetProperty
{
public FixedListInt64 Activities;
}
}
+14
View File
@@ -0,0 +1,14 @@
using Pets.Interfaces;
namespace Pets.Components.Properties
{
public struct CLonelyDistance : IPetProperty
{
public float Distance;
public CLonelyDistance()
{
Distance = 4.5f;
}
}
}
+10
View File
@@ -0,0 +1,10 @@
using Pets.Interfaces;
using Unity.Collections;
namespace Pets.Components.Properties
{
public struct CPreferredFoods : IPetProperty
{
public FixedListInt32 PreferredFoods;
}
}
+14
View File
@@ -0,0 +1,14 @@
using Pets.Interfaces;
namespace Pets.Components.Properties
{
public struct CRoamNearOwner : IPetProperty
{
public float Distance;
public CRoamNearOwner()
{
Distance = 3;
}
}
}
@@ -0,0 +1,10 @@
using Pets.Interfaces;
using UnityEngine;
namespace Pets.Components.Properties
{
public struct CSleepingPositionOffset : IPetProperty
{
public Vector2 Offset;
}
}
@@ -0,0 +1,9 @@
using Pets.Interfaces;
namespace Pets.Components.Properties
{
public struct CStandBackFromFood : IPetProperty
{
public float Distance;
}
}
@@ -0,0 +1,10 @@
using Pets.Interfaces;
using Unity.Collections;
namespace Pets.Components.Properties
{
public struct CStapleAppliances : IPetProperty
{
public FixedListInt64 Appliances;
}
}
+9
View File
@@ -0,0 +1,9 @@
using KitchenMods;
namespace Pets.Components
{
public struct SPetRequestView : IModComponent
{
}
}
+9
View File
@@ -0,0 +1,9 @@
using KitchenMods;
namespace Pets.Components.Status
{
public struct COccupiedByPet : IModComponent
{
}
}
+13
View File
@@ -0,0 +1,13 @@
using KitchenMods;
using Unity.Entities;
namespace Pets.Components.Status
{
public struct CPetInteractingWith : IComponentData, IModComponent
{
public Entity InteractingWith;
public long StartTime;
public long TimeToFinish;
public bool IsWaitingForDestination;
}
}