mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Mapping
This commit is contained in:
parent
ba2f6a97fc
commit
efd6283487
15 changed files with 177 additions and 35 deletions
|
|
@ -8,17 +8,38 @@ public partial class TimeModifier : Resource
|
|||
[Export] public float TimeInSeconds = 1f;
|
||||
[Export] public TimeModifierType ModifierType;
|
||||
[Export] public float Value;
|
||||
[Export] public bool Continuous = false;
|
||||
|
||||
public ModifierWrapper Wrap()
|
||||
{
|
||||
return new ModifierWrapper()
|
||||
{
|
||||
TimeModifier = this,
|
||||
Applied = false
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public class ModifierWrapper
|
||||
{
|
||||
public TimeModifier TimeModifier { get; set; }
|
||||
public bool Applied { get; set; } = false;
|
||||
|
||||
public virtual void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void Process(double deltaTime)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public enum TimeModifierType
|
||||
{
|
||||
SpeedChange,
|
||||
RotationChange,
|
||||
FacePlayer
|
||||
FacePlayer,
|
||||
Dynamic
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue