#33 lua module/require architecture changeover

This commit is contained in:
Mikayla Fischler
2022-05-04 13:37:01 -04:00
parent 7bcb260712
commit b575899d46
33 changed files with 679 additions and 518 deletions

View File

@@ -2,13 +2,17 @@
-- Message Queue
--
TYPE = {
local mqueue = {}
local TYPE = {
COMMAND = 0,
DATA = 1,
PACKET = 2
}
function new()
mqueue.TYPE = TYPE
mqueue.new = function ()
local queue = {}
local length = function ()
@@ -57,3 +61,5 @@ function new()
pop = pop
}
end
return mqueue