Initial Commit

This commit is contained in:
DavidOnTop 2024-01-20 13:52:41 +01:00
commit d2176afff9
No known key found for this signature in database
GPG key ID: FAB914DDC2F180EB
23 changed files with 778 additions and 0 deletions

View file

@ -0,0 +1,9 @@
using UnityEngine;
namespace CruelMan.Modules.Settings {
public abstract class ActionSetting : Setting {
public KeyCode bind { get; set; } = KeyCode.None;
public abstract void Run(Module module);
}
}

View file

@ -0,0 +1,9 @@
namespace CruelMan.Modules.Settings {
public abstract class BooleanSetting : Setting {
public bool Value = false;
public void Toggle() {
Value = !Value;
}
}
}

View file

@ -0,0 +1,7 @@
namespace CruelMan.Modules.Settings {
public abstract class NumberSetting : Setting {
public abstract float Value { get; set; }
public abstract float Min {get; set; }
public abstract float Max {get;set;}
}
}

View file

@ -0,0 +1,8 @@
namespace CruelMan.Modules.Settings {
public abstract class Setting {
public abstract string Name { get; }
public abstract string Description { get; }
public Setting() {}
}
}

View file

@ -0,0 +1,5 @@
namespace CruelMan.Modules.Settings {
public abstract class TextSetting : Setting {
public virtual string value { get; set; } = "";
}
}