|
|
|
@ -48,7 +48,6 @@ public partial class FieldActivator : Node, ISaveable
|
|
|
|
/// <param name="activated"></param>
|
|
|
|
/// <param name="activated"></param>
|
|
|
|
public void RakeActivated(bool activated)
|
|
|
|
public void RakeActivated(bool activated)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GD.Print($"Rake was {activated}. Process mode: {ProcessMode}.");
|
|
|
|
|
|
|
|
if (_used || ProcessMode == ProcessModeEnum.Disabled)
|
|
|
|
if (_used || ProcessMode == ProcessModeEnum.Disabled)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
_rakeInHand = activated;
|
|
|
|
_rakeInHand = activated;
|
|
|
|
@ -57,7 +56,6 @@ public partial class FieldActivator : Node, ISaveable
|
|
|
|
|
|
|
|
|
|
|
|
private void ToggleInteractionArea()
|
|
|
|
private void ToggleInteractionArea()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GD.Print($"Toggle interaction area. Used: {_used}, rake in hand: {_rakeInHand}");
|
|
|
|
|
|
|
|
_activatorArea.IsActive = !_used && _rakeInHand;
|
|
|
|
_activatorArea.IsActive = !_used && _rakeInHand;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -76,8 +74,6 @@ public partial class FieldActivator : Node, ISaveable
|
|
|
|
|
|
|
|
|
|
|
|
public void LoadFromSaveData()
|
|
|
|
public void LoadFromSaveData()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GD.Print("Loading field activator save data");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string parent_id = _saveIdHolder.GetMeta("SaveID").AsString();
|
|
|
|
string parent_id = _saveIdHolder.GetMeta("SaveID").AsString();
|
|
|
|
string id = $"{parent_id}_field_activator";
|
|
|
|
string id = $"{parent_id}_field_activator";
|
|
|
|
|
|
|
|
|
|
|
|
@ -93,6 +89,5 @@ public partial class FieldActivator : Node, ISaveable
|
|
|
|
_used = false;
|
|
|
|
_used = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
GD.Print($"Field activator used state: {_used}");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|