Base Update() method was removed from components in engine, added some basic ECS systems to update the components. (#79)

This commit is contained in:
Acruid
2018-07-26 14:26:19 -07:00
committed by Pieter-Jan Briers
parent 18ed1041ba
commit 8c874c76dc
12 changed files with 132 additions and 13 deletions

View File

@@ -45,10 +45,8 @@ namespace Content.Server.GameObjects
}
/// <inheritdoc />
public override void Update(float frameTime)
public void OnUpdate(float frameTime)
{
base.Update(frameTime);
int fireDamage = (int)Math.Floor(Math.Max(0, CurrentTemperature - _fireDamageThreshold) / _fireDamageCoefficient);
_secondsSinceLastDamageUpdate += frameTime;