public static void AddStateComponent(PlayerEntity playerEntity) { var index = PlayerComponentsLookup.State; var component = playerEntity.CreateComponent <StateComponent>(index); playerEntity.AddComponent(index, component); }