Added a PowerLost BoolReference to prevent looping over _activePowerStructures twice in PowerHandler
This commit is contained in:
parent
510aaf1b67
commit
cf3cf65b06
|
@ -1,3 +1,5 @@
|
||||||
|
using ScriptableObjectArchitecture;
|
||||||
|
|
||||||
namespace GameDev.CoreSystems
|
namespace GameDev.CoreSystems
|
||||||
{
|
{
|
||||||
public interface IPowerSystem
|
public interface IPowerSystem
|
||||||
|
@ -15,7 +17,7 @@ namespace GameDev.CoreSystems
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// True if consumer demand exceed generator capacity
|
/// True if consumer demand exceed generator capacity
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool PowerLost { get; set; }
|
public BoolReference PowerLost { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initialize the power configuration of the entity with the <see cref="SoPowerConfig"/>
|
/// Initialize the power configuration of the entity with the <see cref="SoPowerConfig"/>
|
||||||
|
|
Loading…
Reference in New Issue