chore: bumped dotnet version to 10

This commit is contained in:
2026-01-23 12:16:07 +03:00
parent 097f1897c2
commit 90e59802c6
32 changed files with 210 additions and 257 deletions

View File

@@ -10,20 +10,19 @@ public abstract class StateBehaviourBase : Behaviour, IState
public Event<IState, IState.StateTransitionReadyArguments> OnStateTransitionReady { get; } = new();
public Event<INameable, INameable.NameChangedArguments> OnNameChanged { get; } = new();
private string _name = string.Empty;
public string Name
{
get => _name;
get;
set
{
if (_name.CompareTo(value) == 0)
if (field.CompareTo(value) == 0)
return;
string previousName = _name;
_name = value;
string previousName = field;
field = value;
OnNameChanged?.Invoke(this, new(previousName));
}
}
} = string.Empty;
protected virtual void OnUpdateState() { }
public void Update()