add initial project files and configurations, including EventBus, systems, and resources
This commit is contained in:
17
Code/Data/HazardDef.cs
Normal file
17
Code/Data/HazardDef.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Godot;
|
||||
|
||||
namespace MaxEffort.Code.Data;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class HazardDef : Resource
|
||||
{
|
||||
[Export] public HazardType Type;
|
||||
[Export] public string DisplayName;
|
||||
[Export] public SpriteFrames Animations;
|
||||
[Export] public string IdleAnimName = "default";
|
||||
[Export] public string WalkAnimName = "walk"; // Optional, if they walk in
|
||||
[Export] public float TimeToFail = 3.0f; // How long before Game Over if ignored
|
||||
[Export] public float SpawnWeight = 1.0f; // Rarity chance
|
||||
[Export] public float MinFocusToSpawn = 0.3f; // Won't spawn if you aren't somewhat focused
|
||||
[Export] public int ClicksToResolve = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user