Closed Itangalo closed 2 years ago
Adding the property "static = true" to any object seems like a good solution. It can be picked up in the build process to trigger store/retrieve.
In the other hand: Even boards change during play. Not the boards themselves, but pawns move around. This makes it difficult to reuse them.
I don't think this will be implemented. I'll let it be some more, then probably close the issue.
There is now getCache() and setCache() functions available, and an option for caching track graphs. Documentation left to do.
Docs updated. Ready to release in version 1.3.
A prime example is a permanent and complex board. It shouldn't have to build on every iteration.