public static int GetOneShotComponentTypeId <TComponent>() { if (OneShotComponentTypes <TComponent> .typeId < 0) { WorldUtilities.CacheOneShotComponentTypeId <TComponent>(); } return(OneShotComponentTypes <TComponent> .typeId); }