[TOT] [TOTPP] Flags and Counters Library

Prof. Garfield

Deity
Supporter
Joined
Mar 6, 2004
Messages
4,397
Location
Ontario
This thread is for a "flags" library and a "counters" library.

Basically, these are ways to access and modify the state table via functions (and allow for error checking and proper initialization). "Flags" can have values true and false, while counters can have numerical values.

These modules can be required in other modules, as long as the flags and counters modules are also "set up" in the main events.lua file. More details are in the library code.

As always, bug reports, bug fixes, feature requests, and code submissions are all welcome.
 

Attachments

Last edited:
I'm sorry that you're not getting much input yet. I do appreciate what you're doing here. Once OTR is done, I have a few projects in mind that I'd like to use the converter and modules for.

I'm interested to see how far I can get with both just using the modular pieces you've provided.

Winter is around the corner and the lakes will be frozen soon! Activity will pick up!
 
I've added a counter.lua file to the initial post (and edited out the line saying that the counter file was to come).

I'm sorry that you're not getting much input yet. I do appreciate what you're doing here. Once OTR is done, I have a few projects in mind that I'd like to use the converter and modules for.

I'm interested to see how far I can get with both just using the modular pieces you've provided.

Winter is around the corner and the lakes will be frozen soon! Activity will pick up!

I'm not too concerned. There are only a few of us, so I didn't expect any immediate action. Much of the code I've provided was examples for my last two lua lessons (in fact, I ask people to submit to the general library in a lesson in part to see if anyone gets there), and I wanted to get those done.
 
Back
Top Bottom