{"id":"nickszone/instancepoolclass","name":"instancepoolclass","scope":"nickszone","platform":"roblox","description":"Class for pooling pivotable instances.","version":"1.0.2","latest":"1.0.2","versions":["1.0.1","1.0.2"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"749c54d434be76aba38774f23d82f63f32ba74201f715bd00ef772476f397948","likes":0,"downloads":0,"install":"forest install nickszone/instancepoolclass","url":"https://forest.dev/p/roblox/nickszone/instancepoolclass","files":"https://api.forest.dev/ai/package/roblox/nickszone/instancepoolclass/files","readme":"# PoolClass\n\nA compact Luau object pool for pivotable Roblox instances. It keeps pooled\nobjects off-map and can clone a saved template when the pool is empty.\n\n## Install (Wally)\n\nAdd this to `wally.toml`:\n\n```toml\n[dependencies]\nPoolClass = \"nickszone/instancepoolclass@1.0.0\"\n```\n\nThen run:\n\n```sh\nwally install\n```\n\n## Use\n\n```lua\nlocal PoolClass = require(Packages.PoolClass)\nlocal pool = PoolClass.new()\n\n-- Pool objects under a tag, then grab them when needed.\npool:pool({ workspace.Enemy }, \"Enemy\")\nlocal enemy = pool:grab(\"Enemy\")\n\n-- Destroy all cached objects and templates when finished.\npool:clean()\n```\n\nUse `_setPoolPosition(CFrame)` to choose where pooled objects are moved, and\n`_setDebugMode(true)` to enable warnings for missing pool tags.\n","readmeTruncated":false}