コード例 #1
0
        public EntityBoardContainer.ComponentMetadata GetComponentMetadata(GameEntityHandle entityHandle, ComponentType componentType)
        {
            ThrowOnInvalidHandle(entityHandle);

            return(Boards.Entity.GetComponentColumn(componentType.Id)[(int)entityHandle.Id]);
        }
コード例 #2
0
 /// <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))));
 }