úÎŽ:„KŪ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ NoneŪŊŪŊŪŊNone*9:;<=DIORT[Casts for entities and slices#Class of storages for global values$Holds components indexed by entities +The type of components stored by this Store .Return type for safe reads writes to the store $Retrieves a component from the store Writes a component +Destroys the component for the given index.8Returns whether there is a component for the given index+Returns an unboxed vector of member indicesDUnsafe index to the store. Undefined if the component does not exist$Either writes or deletes a component1Removes all components. Equivalent to calling  explDestroy on each member(Monadically iterates over member indices(Monadically iterates over member indices|Modifies an element in the store. Equivalent to reading a value, and then writing the result of the function application.Maps over all elements of this store. Equivalent to getting a list of all entities with this component, and then explModifying each of them.Represents a safe access to cO. A safe access is either a read that might fail, or a write that might delete.A world * a component if it can produce its Storage!ūA component is defined by the type of its storage The storage in turn supplies runtime types for the component. For the component to be valid, its Storage must be in instance of Store.#5A system is a newtype around `ReaderT w IO a`, where w is the game world variable.&JA slice is a list of entities, represented by a Data.Unbox.Vector of Ints.)uAn Entity is really just an Int. The type variable is used to keep track of reads and writes, but can be freely cast.+  !"#$%&'()*+,678&    !"#$%&'()*9)*&'(#$%!"  ,+88888888888888876  !"#$%&'()*+,678None*9:;<=DORTghHRun a system with a game worldIRun a system with a game worldJ/A slice containing all entities with component cK/Returns whether the given entity has component c^ For composite components, this indicates whether the component has all its constituentsLDestroys the component c for the given entityM]Removes all components. Equivalent to manually iterating and deleting, but usually optimized.N|Gets the component for a given entity. This is a safe access, because the entity might not have the requested components.OIWrites a component to a given entity. Will overwrite existing components.PSame as set., but uses Safe to possibly delete a componentQ~Applies a function if possible. Equivalent to reading, mapping, and writing, but stores can provide optimized implementations.RšMonadically iterate a system over all entities that have that component. Note that writing to the store while iterating over it is undefined behaviour.SšMonadically iterate a system over all entities that have that component. Note that writing to the store while iterating over it is undefined behaviour.T(Maps a pure function over all componentsUmapM_ version of cmapV.indexed cmapM_, also gives the current entity.W;mapM version of cmap. Can be used to get a list of entitiesX-indexed cmapM, also gives the current entity.Y0Maps a function that might delete its componentsZ)Maps a function over all entities with a r, and writes their w[)Maps a function over all entities with a r, and writes or deletes their w\For all entities with a w, this map reads their r and writes their w]For all entities with a w, this map reads their r and writes or deletes their w^Reads a global value_Writes a global value`Modifies a global valueHIJKLMNOPQRSTUVWXYZ[\]^_`HIJKLMNOPQRSTUVWXYZ[\]^_`HIJKLMNOPQRSTUVWXYZ[\]^_`HIJKLMNOPQRSTUVWXYZ[\]^_`None*,9:;<=DORTfghbäA cache around another store. The wrapped store must produce safe representations using Maybe. Note that iterating over a cache is linear in its size, so large, sparsely populated caches will actually decrease performance.c"Global value. Initialized with °ąBConstant value. Not very practical, but fun to write. Contains °dˆA Unique contains exactly one component belonging to some entity. Writing to it overwrites both the previous component and its owner.e@A store that keeps membership, but holds no values. Produces flag runtime values.fClass for flags, used by Set" to yield runtime representations.hmA map from Data.Intmap.Strict. O(log(n)) for most operations. Yields safe runtime representations of type Maybe c.abēcģąīdĩeķfgh·ļijklmnopqrabcdefghhefgbdcaabēcģąīdĩeķfgh·ļijklmnopqrNone9:;<=DIRTgh s!Secretly just an int in a newtypeu,Bumps the EntityCounter and yields its valuevCWrites the given components to a new entity, and yields that entityw'Explicitly invoke the garbage collectorx“Quantize turns a world-space coordinate into a table-space coordinate by dividing by the given cell size and rounding towards negative infinity.y|Turns a table-space vector into an integral index, given some table size vector. Yields Nothing for out-of-bounds querieszRTests whether a vector is in the region given by 0 and the size vector (inclusive){œFor two table-space vectors indicating a region's bounds, gives a list of the vectors contained between them. This is useful for querying a spatial hash.|DUnsafe version of flatten. Yields garbage for out-of-bounds queries.}5Runs a system and gives its execution time in seconds~KRuns a system, discards its output, and gives its execution time in secondssđštuvwxQuantization cell sizeVector to be quantizedyz{Lower bound for the regionHigher bound for the region|}~ stuvwxyz{|}~ wtsuvxyz{|}~ sđštuvwxyz{|}~None„Same as … , but has no s… 7makeWorld "WorldName" [''Component1, ''Component2, ...] turns into ĸĸdata WorldName = WorldName ... instance WorldName `Has` Component1 where ... instance WorldName `Has` Component2 where ... ... instance WorldName `Has` EntityCounter where ... initWorldName :: IO WorldName initWorldName = WorldName <$> initStore <*> ...|ŧ„…„……„ŧ„…None9:;T†Slice version of foldM_‡Gets the size of a slice (O(n))ˆ%Tests whether a slice is empty (O(1))‰$Construct a slice from a list of IDsŠMonadically filter a slice‹.Concatenates two slices. Equivalent to mappendŒSlice version of forM_Slice version of forMŽMIterates over a slice, and reads the components of the Slice's type argument.MIterates over a slice, and reads the components of the Slice's type argument.Slice version of mapM_‘Slice version of mapM’MIterates over a slice, and reads the components of the Slice's type argument.“MIterates over a slice, and reads the components of the Slice's type argument.†‡ˆ‰Š‹ŒŽ‘’“†‡ˆ‰Š‹ŒŽ‘’“†‡ˆ‰Š‹ŒŽ‘’“†‡ˆ‰Š‹ŒŽ‘’“None*9:;<=DRTgh ”3Hashtable that maintains buckets of entities whose  fromEnum c produces the same value•"Composite Log consisting of 3 Logs–"Composite Log consisting of 2 Logs—!Composite Log consisting of 1 Log˜A Logger l of some store updates its Log l& with the writes and deletes to store s™#FromPure turns a PureLog into a Log›&A Log is a PureLog with mutable state. A PureLog is a piece of state l c! that is updated when components c( are written or destroyed. Note that  l :: * -> *Ī.Produces the log indicated by the return type.Ĩ Query the  EnumTable by an index (the result of fromEnum$). Will return an empty slice if  index < 0 of index >= fromEnum (maxBound).Ķ Query the  EnumTableQ by an example enum. Will not perform bound checks, so crashes if `fromEnum c  0 && fromEnum c fromEnum maxBound `.!”ž•―–ū—ŋ˜Ā™šÁ›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­”•–—˜™š›œžŸ ĄĒĢĪĨĶ›œžŸ ĄĒĢ™š˜Ī—–•”ĨĶ”ž•―–ū—ŋ˜Ā™šÁ›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­None3 !"#$%&)*HIJKLMNOPQTUVWXYZ[\]^_`cdefghsvw3#$%!")*& hedcfgLKJMNOPQTWUXV[Z\]Y^_`HIwsvà  !"#$%&'()*+,--./0123345567789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨĶͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđ š ŧ ž―ūopūqruŋ€ĀÁĄĒĢĪĨÂÃÄ$apecs-0.2.3.0-15oeISfH7IZAUPeuZFU3arApecs Apecs.Logs Apecs.Types Apecs.System Apecs.Stores Apecs.UtilApecs.TH Apecs.SliceApecs.THTuplesbaseControl.Monad.IO.ClassliftIO GHC.IORef readIOReftransformers-0.5.2.0Control.Monad.Trans.Classlift mtl-2.2.1-BLKBelFsPB3BoFeSWSOYj6Control.Monad.Reader.ClassasksaskCastcast GlobalStoreStoreStoresSafeRWexplGetexplSet explDestroy explExists explMembers explGetUnsafe explSetMaybe initStore explReset explImapM_ explImapM explModifyexplCmap explCmapM_ explCimapM_ explCmapM explCimapMSafegetSafeHasgetStore ComponentStorageSystemunSystemSliceunSliceEntity$fCastSliceSlice$fCastEntityEntity $fEqEntity $fOrdEntity $fShowEntity $fShowSlice $fMonoidSlice$fFunctorSystem $fMonadSystem$fApplicativeSystem$fMonadIOSystem$fGlobalStore(,,)$fGlobalStore(,)D:R:Stores(,,,,,)$fStore(,,,,,) $fHasw(,,,,,)$fComponent(,,,,,) $fStore(,,,,) $fHasw(,,,,)$fComponent(,,,,) $fStore(,,,) $fHasw(,,,)$fComponent(,,,) $fStore(,,) $fHasw(,,)$fComponent(,,) $fStore(,) $fHasw(,)$fComponent(,) runSystemrunWithownersexistsdestroy resetStoregetsetset'modifyimapM_imapMcmapcmapM_cimapM_cmapMcimapMcmap'rmaprmap'wmapwmap' readGlobal writeGlobal modifyGlobalCachableCacheGlobalUniqueSetFlagflagMap $fStoreCache$fCachableCache $fCachableMap $fStoreGlobal$fGlobalStoreGlobal$fGlobalStoreConst $fStoreConst $fStoreUnique $fStoreSet $fStoreMap EntityCounterunEntity nextEntity newEntityrunGCquantizeflatteninboundsregion unsafeFlatten timeSystem timeSystem_$fComponentEntityCounter$fMonoidEntityCounter$fNumEntityCounter$fEqEntityCounter$fShowEntityCounter makeWorldNoEC makeWorldfoldM_sizenullfromListfilterMconcatforM_forMforMCforMC_mapM_mapMmapMCmapMC_ EnumTableLVec3LVec2LVec1LoggerFromPureLoglogEmptylogOnSet logOnDestroylogResetPureLog pureEmpty pureOnSet pureOnDestroygetLogbyIndexbyEnum$fLogEnumTablec $fLogLVec3c $fLogLVec2c $fLogLVec1c $fStoreLogger$fLogFromPurec$fHasLogLoggerl makeInstancestupleInstancesGHC.BasememptyConstdefaultSetMaybe getCountergenNameHasLog explGetLog