This patch first adds a new module Polar.Unique that can generate
unique IDs for any type with an instance of Enum. This is based around
engine storage and the initial ID is set as toEnum 0 of the type in
question. succ is used to increment the ID.
Additionally, this patch implements a basic message queue for the
renderer, built on top of engine storage with a TChan channel as the
actual queue.
This patch first adds a new module
Polar.Unique
that can generate unique IDs for any type with an instance ofEnum
. This is based around engine storage and the initial ID is set astoEnum 0
of the type in question.succ
is used to increment the ID.Additionally, this patch implements a basic message queue for the renderer, built on top of engine storage with a
TChan
channel as the actual queue.This issue partially addresses #13.