Files
Infratest/Assets/Code/Example/Platformer/Entity/PlatformerEntitySettings.cs
T

39 lines
906 B
C#

using System;
using Code.Infrastructure.Generators;
using UnityEngine.AddressableAssets;
using UnityEngine.Serialization;
namespace Code.Example.Platformer.Entity
{
[Serializable]
public struct PlatformerEntityData
{
public string name;
public float speed;
public float acceleration;
public int damage;
public PlatformerEntityType type;
public int maxHealth;
public float damageRecieveThreshold;
}
public enum PlatformerEntityType
{
Player,
Boar,
Bee,
Snail
}
[Config("Configs/Gameplay/Platformer/EntitySettings", true)]
public class PlatformerEntitySettings
{
[ToConfig] public PlatformerEntityData EntityData;
[ToConfig] public AssetReference prefabReference;
}
[Config("", false, true)]
public class PlatformerPlayerSettings
{ }
}