Initial Commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components
|
||||
{
|
||||
public struct CCurrentSpeed : IModComponent
|
||||
{
|
||||
public float speed;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components
|
||||
{
|
||||
public struct CDisplayPet : IModComponent
|
||||
{
|
||||
public int index;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components
|
||||
{
|
||||
public struct CHasDisplayPet : IModComponent
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using KitchenData;
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components
|
||||
{
|
||||
public struct CPetBed : IModComponent, IApplianceProperty
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components
|
||||
{
|
||||
public struct CRequestNameChange : IModComponent
|
||||
{
|
||||
public int Source;
|
||||
public bool IsTriggered;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components
|
||||
{
|
||||
public struct CRequestStateChange : IModComponent
|
||||
{
|
||||
public int PlayerID;
|
||||
public int StateID;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components.Creation
|
||||
{
|
||||
public struct CRequestedPet : IModComponent
|
||||
{
|
||||
public int player;
|
||||
public int pet;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components.Creation
|
||||
{
|
||||
public struct CRequiresPet : IModComponent
|
||||
{
|
||||
public int PetType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using Kitchen;
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components.Menu
|
||||
{
|
||||
public struct CPetEditorInfo : IModComponent
|
||||
{
|
||||
public InputIdentifier Player;
|
||||
public bool IsComplete;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using KitchenMods;
|
||||
using Unity.Entities;
|
||||
|
||||
namespace Pets.Components.Menu
|
||||
{
|
||||
public struct CTriggerPetEditor : IModComponent
|
||||
{
|
||||
public bool IsTriggered;
|
||||
public Entity TriggerEntity;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Pets.Interfaces;
|
||||
using Unity.Collections;
|
||||
|
||||
namespace Pets.Components.Properties
|
||||
{
|
||||
public struct CActivities : IPetProperty
|
||||
{
|
||||
public FixedListInt64 Activities;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Pets.Interfaces;
|
||||
|
||||
namespace Pets.Components.Properties
|
||||
{
|
||||
public struct CLonelyDistance : IPetProperty
|
||||
{
|
||||
public float Distance;
|
||||
|
||||
public CLonelyDistance()
|
||||
{
|
||||
Distance = 4.5f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Pets.Interfaces;
|
||||
using Unity.Collections;
|
||||
|
||||
namespace Pets.Components.Properties
|
||||
{
|
||||
public struct CPreferredFoods : IPetProperty
|
||||
{
|
||||
public FixedListInt32 PreferredFoods;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components
|
||||
{
|
||||
public struct SPetRequestView : IModComponent
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using KitchenMods;
|
||||
|
||||
namespace Pets.Components.Status
|
||||
{
|
||||
public struct COccupiedByPet : IModComponent
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user