public EntityBoardContainer.ComponentMetadata GetComponentMetadata(GameEntityHandle entityHandle, ComponentType componentType) { ThrowOnInvalidHandle(entityHandle); return(Boards.Entity.GetComponentColumn(componentType.Id)[(int)entityHandle.Id]); }
/// <summary> /// Create a new component /// </summary> /// <param name="componentType"></param> /// <returns></returns> public ComponentReference CreateComponent(ComponentType componentType) { return(new ComponentReference(componentType, GameWorldLL.CreateComponent(GameWorldLL.GetComponentBoardBase(Boards.ComponentType, componentType)))); }