mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 09:35:55 +00:00
Make shallow copies of resources
This commit is contained in:
parent
c318bd8c13
commit
0203af4642
8 changed files with 55 additions and 15 deletions
|
|
@ -9,6 +9,7 @@ public partial class TimeModifier : Resource
|
|||
[Export] public TimeModifierType ModifierType;
|
||||
[Export] public float Value;
|
||||
[Export] public bool Continuous = false;
|
||||
public bool Applied { get; set; } = false;
|
||||
|
||||
public ModifierWrapper Wrap()
|
||||
{
|
||||
|
|
@ -18,6 +19,11 @@ public partial class TimeModifier : Resource
|
|||
Applied = false
|
||||
};
|
||||
}
|
||||
|
||||
public TimeModifier MakeClone()
|
||||
{
|
||||
return this.MemberwiseClone() as TimeModifier;
|
||||
}
|
||||
}
|
||||
|
||||
public class ModifierWrapper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue