Refactor Flammable to be ECS. (#4671)

- Refactor IHotItem into IsHotEvent.
- Refactor IFireAct into TileFireEvent.
This commit is contained in:
Vera Aguilera Puerto
2021-09-22 11:05:33 +02:00
committed by GitHub
parent 9bde39c533
commit 6cea9cb973
21 changed files with 348 additions and 268 deletions

View File

@@ -33,9 +33,8 @@ namespace Content.Server.Tools.Components
[RegisterComponent]
[ComponentReference(typeof(ToolComponent))]
[ComponentReference(typeof(IToolComponent))]
[ComponentReference(typeof(IHotItem))]
[NetworkedComponent()]
public class WelderComponent : ToolComponent, IUse, ISuicideAct, IHotItem, IAfterInteract
public class WelderComponent : ToolComponent, IUse, ISuicideAct, IAfterInteract
{
[Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
@@ -98,11 +97,6 @@ namespace Content.Server.Tools.Components
}
}
bool IHotItem.IsCurrentlyHot()
{
return WelderLit;
}
protected override void Initialize()
{
base.Initialize();