ResetValue -> Reset

This commit is contained in:
AdamRamberg 2019-10-14 16:39:22 +02:00
parent 0cc2e21023
commit ac53d4e7a4
4 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@
- MonoHooks are no more 💀 After some discussions and thoughts it has been decided that the value they bring is not worth it.
- Custom property drawers for all atoms.
- Variables now discards playmode changes.
- Add public method `ResetValue` to Variables.
- Add public method `Reset` to Variables.
- Improved documentation.
- Improved examples.

View File

@ -11,7 +11,7 @@ namespace UnityAtoms.Examples
public override void Do()
{
_variable.ResetValue(true);
_variable.Reset(true);
}
}
}

View File

@ -9,7 +9,7 @@ namespace UnityAtoms
public abstract class AtomBaseVariable : BaseAtom, IAtomConstantIcon
{
public abstract object BaseValue { get; set; }
public abstract void ResetValue(bool shouldTriggerEvents = false);
public abstract void Reset(bool shouldTriggerEvents = false);
}
[UseIcon("atom-icon-teal")]
@ -55,7 +55,7 @@ namespace UnityAtoms
public static bool operator ==(AtomBaseVariable<T> left, AtomBaseVariable<T> right) { return Equals(left, right); }
public static bool operator !=(AtomBaseVariable<T> left, AtomBaseVariable<T> right) { return !Equals(left, right); }
public override void ResetValue(bool shouldTriggerEvents = false)
public override void Reset(bool shouldTriggerEvents = false)
{
throw new NotImplementedException();
}

View File

@ -34,7 +34,7 @@ namespace UnityAtoms
Changed.Raise(Value);
}
public override sealed void ResetValue(bool shouldTriggerEvents = false)
public override sealed void Reset(bool shouldTriggerEvents = false)
{
if (!shouldTriggerEvents)
{