úÎ!™ÆŽøģ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēNone Ëģapecs7Generate tuple instances for the following tuple sizes.ģŧNone+;<=>?FKQTV> apecs9Stores that we can request a list of member entities for. apecs+Returns an unboxed vector of member indices apecs+Stores that components can be removed from. apecs)Destroys the component for a given index. apecsStores that can be written. apecs Writes a component to the store.apecsStores that we can read using explGet and  explExists. For some entity e,  eplGet s e" is only guaranteed to be safe if explExists s e returns True.apecs‚Reads a component from the store. What happens if the component does not exist is left undefined, and might not necessarily crash.apecs9Returns whether there is a component for the given index.apecsIndicates that the store s6 can be initialized. Generally, "base" stores like Map c/ can be initialized, but composite stores like  MaybeStore s cannot.apecsInitialize a new empty store.apecs/The type of components stored by a store, e.g. Elem (Map c) = c.apecsHas w c means that world w can produce a  Storage c.apecs‚A component is defined by specifying how it is stored. The constraint ensures that stores and components are mapped one-to-one.apecs5A System is a newtype around `ReaderT w IO a`, where w7 is the game world variable. Systems mainly serve to$Lift side effects into the IO Monad.7Allow type-based lookup of a component's store through getStore.apecsWAn Entity is just an integer, used to index into a component store. In general, use  newEntity, cmap<, and component tags instead of manipulating these directly.}For performance reasons, negative values like (-1) are reserved for stores to represent special values, so avoid using these.apecsIdentity component/store.  Identity c is equivalent to c , so using it is mostly useless.,apecs/Pseudostore used to produce components of type . Always returns True for  explExists*, and echoes back the entity argument for explGet. Used in e.g. cmap $ (a, ety :: Entity) -> b to access the current entity.0apecs,Pseudocomponent that functions normally for  explExists and  explMembers, but always return Filter for explGet. Can be used in cmap as  cmap $ (Filter :: Filter a) -> b6. Since the above can be written more consicely as cmap $ (_ :: a) -> bT, it is rarely directly. More interestingly, we can define reusable filters like 0movables = Filter :: Filter (Position, Velocity).2apecs Used for Ŋr, a logical disjunction between two components. As expected, Either is used to model error values. Getting an  Either a b will first attempt to get a b and return it as Right b", or if it does not exist, get an a as Left a-. Can also be used to set one of two things.4apecs+Pseudostore used to produce values of type Maybe a. Will always return True for  explExists7. Writing can both set and delete a component using Just and Nothing respectively.6apecs+Pseudostore used to produce values of type Not a , inverts  explExists, and destroys instead of explSet.8apecs*Psuedocomponent indicating the absence of a. Mainly used as e.g. cmap $ (a, Not b) -> c" to iterate over entities with an a but no b1. Can also be used to delete components, like cmap $ a -> (Not :: Not a) to delete every a component.( ,-./0123456789(  8967452301./,-None ;<=>?VjkSą}apecsRun a system with a game world~apecsRun a system with a game world€apecsĶWrites a component to a given entity. Will overwrite existing components. The type was originally 'Entity c -> c -> System w ()', but is relaxed to 'Entity e' so you don't always have to write 'set . cast'apecs/Returns whether the given entity has component c Note that cQ is a phantom argument, used only to convey the type of the entity to be queried.‚apecs)Maps a function over all entities with a cx, and writes their cy.ƒapecs-Monadically iterates over all entites with a cx, and writes their cy.„apecs-Monadically iterates over all entites with a cx…apecs'Fold over the game world; for example, cfold max (minBound :: Foo) will find the maximum value of Foo. Strict in the accumulator.†apecsCMonadically fold over the game world. Strict in the accumulator.‡apecsCMonadically fold over the game world. Strict in the accumulator.ˆapecsGet all components c . Call as  [(c,Entity)] to also read the entity index.‰apecsDestroys component c" for the given entity. Note that cS is a phantom argument, used only to convey the type of the entity to be destroyed.Šapecs Applies a function, if possible.‹apecs%Counts the number of entities with a c}~€‚ƒ„…†‡ˆ‰Š‹}~€‚ƒ„…†‡ˆ‰Š‹None-;<=>?FTV]ijkjŒapecsūA cache around another store. Caches store their members in a fixed-size vector, so operations run in O(1). Caches can provide huge performance boosts, especially for large numbers of components. The cache size is given as a type-level argument.ūNote that iterating over a cache is linear in cache size, so sparsely populated caches might actually decrease performance. In general, the exact size of the cache does not matter as long as it reasonably approximates the number of components present.tThe cache uses entity (-1) to internally represent missing entities, so be wary when manually manipulating entities.apecs An empty type class indicating that the store behaves like a regular map, and can therefore safely be cached. An example of a store that cannot be cached is .ŽapecsAA Global contains exactly one component. The initial value is ž from the component's ŋ instance. When operating on a global, any entity arguments are ignored. For example, we can get a global component with get 0 or get 1 or even  get undefined.apecsA Unique contains zero or one component. Writing to it overwrites both the previous component and its owner. Its main purpose is to be a Map8 optimized for when only ever one component inhabits it.apecsA map based on Data.Intmap.Strict . O(log(n)) for most operations.ŒŽŒŽNone;<=>?VnkĨapecs¨Executes a list of systems concurrently, and blocks until all have finished. Provides zero protection against race conditions and other hazards, so use with caution.ĻapecsParallel version of cmap. ĻapecsEntities per threadĨĻĨĻNone;<=>?FKTVjk… §apecsuComponent used by newEntity to track the number of issued entities. Automatically added to any world created with  makeWorld¨apecs°Convenience entity, for use in places where the entity value does not matter, i.e. a global store. Its value is -2, to avoid potential conflicts with caches, which reserve -1.Šapecs,Bumps the EntityCounter and yields its valueĒapecshWrites the given components to a new entity, and yields that entity. The return value is often ignored.Ģapecs'Explicitly invoke the garbage collectorŦapecs“Quantize turns a world-space coordinate into a table-space coordinate by dividing by the given cell size and rounding towards negative infinity.­apecs|Turns a table-space vector into an integral index, given some table size vector. Yields Nothing for out-of-bounds queriesŽapecsRTests whether a vector is in the region given by 0 and the size vector (inclusive)¯apecsœ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.°apecs6flatten, but yields garbage for out-of-bounds vectors.ąapecs5Runs a system and gives its execution time in seconds˛apecsKRuns a system, discards its output, and gives its execution time in secondsŦapecsQuantization cell sizeapecsVector to be quantized¯apecsLower bound for the regionapecsHigher bound for the region §¨ŠĒĢŦ­Ž¯°ą˛ ̍§ŠĒŦ­Ž¯°ą˛Noneb¸apecsSame as ē , but has no §šapecs7Same as makeWorld, but also makes a component instance:ēapecs 7makeWorld "WorldName" [''Component1, ''Component2, ...] turns into ˙>data WorldName = WorldName Component1 Component2 ... EntityCounter instance WorldName `Has` Component1 where ... instance WorldName `Has` Component2 where ... ... instance WorldName `Has` EntityCounter where ... initWorldName :: IO WorldName initWorldName = WorldName <$> initStore <*> initStore <*> ... <*> initStore|¸šēē¸šNone°+ĀÁÂÃÄ89}~€‚ƒ„ˆ‰ŠŒŽ§¨ĒĢšē&89ŽŒ€ˆ‚ƒ„Љ}~̧ǍēšÅ  !"#$%&''())*+,-./01234567899::;;<<==>>??@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁ ÃÄ ÅÆ ÅĮ ČÉ ČĘ ČĘ ČË ČËĖ$apecs-0.4.1.0-1pkU0JsOCpSIejOaNtE3gzApecs Apecs.Core Apecs.System Apecs.StoresApecs.Concurrent Apecs.UtilApecs.THApecs.THTuplesbaseControl.Monad.IO.ClassliftIOtransformers-0.5.5.0Control.Monad.Trans.Classlift mtl-2.2.2Control.Monad.Reader.ClassasksaskDestroyMembersSetGet ExplMembers explMembers ExplDestroy explDestroyExplSetexplSetExplGetexplGet explExistsExplInitexplInitElemHasgetStore ComponentStorageSystemunSystemEntityunEntity$fComponentIdentity$fHaswIdentity$fExplGetIdentity$fExplSetIdentity$fExplDestroyIdentity$fExplMembersIdentity $fNumEntity $fEqEntity $fOrdEntity $fShowEntity$fFunctorSystem $fMonadSystem$fApplicativeSystem$fMonadIOSystem EntityStore FilterStoreFilter EitherStore MaybeStoreNotStoreNot$fExplDestroy() $fExplSet() $fExplGet() $fComponent()$fExplMembers(,,,,,,,)$fExplDestroy(,,,,,,,)$fExplSet(,,,,,,,)$fExplGet(,,,,,,,)$fHasw(,,,,,,,)$fComponent(,,,,,,,)$fExplMembers(,,,,,,)$fExplDestroy(,,,,,,)$fExplSet(,,,,,,)$fExplGet(,,,,,,)$fHasw(,,,,,,)$fComponent(,,,,,,)$fExplMembers(,,,,,)$fExplDestroy(,,,,,)$fExplSet(,,,,,)$fExplGet(,,,,,) $fHasw(,,,,,)$fComponent(,,,,,)$fExplMembers(,,,,)$fExplDestroy(,,,,)$fExplSet(,,,,)$fExplGet(,,,,) $fHasw(,,,,)$fComponent(,,,,)$fExplMembers(,,,)$fExplDestroy(,,,)$fExplSet(,,,)$fExplGet(,,,) $fHasw(,,,)$fComponent(,,,)$fExplMembers(,,)$fExplDestroy(,,) $fExplSet(,,) $fExplGet(,,) $fHasw(,,)$fComponent(,,)$fExplMembers(,)$fExplDestroy(,) $fExplSet(,) $fExplGet(,) $fHasw(,)$fComponent(,)$fExplSetNotStore$fExplGetNotStore $fHaswNot$fComponentNot$fExplSetMaybeStore$fExplGetMaybeStore $fHaswMaybe$fComponentMaybe$fExplSetEitherStore$fExplGetEitherStore $fHaswEither$fComponentEither$fExplMembersFilterStore$fExplGetFilterStore $fHaswFilter$fComponentFilter$fExplGetEntityStore $fHaswEntity$fComponentEntity $fEqFilter $fShowFilter runSystemrunWithgetsetexistscmapcmapMcmapM_cfoldcfoldMcfoldM_getAlldestroymodifycountCacheCachableGlobalUniqueMap$fExplMembersMap$fExplDestroyMap $fExplSetMap $fExplGetMap $fExplInitMap$fExplMembersUnique$fExplDestroyUnique$fExplSetUnique$fExplGetUnique$fExplInitUnique$fExplSetGlobal$fExplGetGlobal$fExplInitGlobal $fCachableMap$fExplMembersCache$fExplDestroyCache$fExplSetCache$fExplGetCache$fExplInitCache$fCachableCache concurrentlypmap EntityCounterglobal nextEntity newEntityrunGCquantizeflatteninboundsregionflatten' timeSystem timeSystem_$fComponentEntityCounter$fSemigroupEntityCounter$fMonoidEntityCounter$fEqEntityCounter$fShowEntityCounter makeWorldNoECmakeWorldAndComponents makeWorld makeInstancestupleInstances Data.EitherEitherGHC.BasememptyMonoid Data.Proxy asProxyTypeOfProxyKProxy