Lua Coroutine Demo
This is a horrible overwrought and does too much demo to serve as an example for my blog post about Lua's coroutines.
The parts that can really be considered interesting are:
- WaitSupport.lua, which implements the waitSeconds, waitSignal, and signal functionality.
- Demo.lua, which just endlessly loops a silly conversation between George and Bob.
- Source/Main.cpp, which implemented the main loop and handles calling the Lua function that wakes up sleeping coroutines.
Included in this demo are a couple things that I don't have ownership of: