16 lines
497 B
C#
16 lines
497 B
C#
using Gamesmiths.Forge.Attributes;
|
|
namespace Movementtests.scenes.enemies;
|
|
|
|
public class EnemyAttributeSet : AttributeSet
|
|
{
|
|
public EntityAttribute Health { get; }
|
|
public EntityAttribute Strength { get; }
|
|
public EntityAttribute Speed { get; }
|
|
|
|
public EnemyAttributeSet()
|
|
{
|
|
Health = InitializeAttribute(nameof(Health), 100, 0, 150);
|
|
Strength = InitializeAttribute(nameof(Strength), 10, 0, 99);
|
|
Speed = InitializeAttribute(nameof(Speed), 5, 0, 10);
|
|
}
|
|
} |