Add logging functionality with ILogger interface and implementations
This commit is contained in:
@@ -34,6 +34,7 @@ public class WeaponSystem : ISystem
|
||||
if (!cost.CanAfford(context))
|
||||
{
|
||||
canFire = false;
|
||||
world.Logger.Warn("Weapon fire failed due to insufficient resources.");
|
||||
world.PublishEvent(new WeaponFireFailedEvent());
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user