Itangalo / Bot-Playtesting-Toolkit

A toolkit for simulating board games with Google spreadsheets. Intended use is board game development.
GNU General Public License v3.0
9 stars 1 forks source link

Allow storing heavy and static object in the global/static variable #62

Closed Itangalo closed 2 years ago

Itangalo commented 2 years ago

A prime example is a permanent and complex board. It shouldn't have to build on every iteration.

Itangalo commented 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.

Itangalo commented 2 years ago

In the other hand: Even boards change during play. Not the boards themselves, but pawns move around. This makes it difficult to reuse them.

Itangalo commented 2 years ago

I don't think this will be implemented. I'll let it be some more, then probably close the issue.

Itangalo commented 2 years ago

There is now getCache() and setCache() functions available, and an option for caching track graphs. Documentation left to do.

Itangalo commented 2 years ago

Docs updated. Ready to release in version 1.3.