示例#1
0
        public T[] GetComponents <T>()
        {
            int typeIndex = typeIndexer.GetIndex(typeof(T));

            Debug.Assert(typeMap.Contains(typeIndex), "Type not registered");
            int packedTypeIndex = typeMap.GetPacked(typeIndex);

            return(((ArrayWrapper <T>)components[packedTypeIndex]).Data);
        }