public static bool ResolveEndTurn(string entityId, EncounterState state) { Entity entity = state.GetEntityById(entityId); if (entity != null) { var actionTimeComponent = entity.GetComponent <ActionTimeComponent>(); actionTimeComponent.EndTurn(entity.GetComponent <SpeedComponent>(), entity.GetComponent <StatusEffectTrackerComponent>()); state.EntityHasEndedTurn(entity); return(true); } else { return(false); } }