Persist behavior runtime state in checkpoints

This commit is contained in:
Meta Vens 2026-06-14 14:29:04 +01:00
commit 16a92b0173
8 changed files with 311 additions and 6 deletions

View file

@ -66,6 +66,9 @@ public class Sensor : Behavior, IEventBehavior
{
get => _pingRadius;
}
public float PingLerp => _pingLerp;
public bool Pinging => _pinging;
public int PingedEntityCount => _pingedEntities.Count;
public float PingBrightness => pow(1 - _pingLerp, _data.PingRadiusExponent);
@ -153,4 +156,4 @@ public class Sensor : Behavior, IEventBehavior
}
return true;
}
}
}