probablycorey/wax — pull request #58 by atterpeng (2014-09-29 12:52:51+00:00)
Title: Create wax_BlockMgr.m

waxClass{"BlockMgr"}

function init(self)
self.super:init()
self.blocks={}
return self
end

function addBlock(self, block)
print("addBlock,blockname:"..tostring(block.name))
self.blocks[tostring(block)]=block
end

function removeBlock(self, block)
print("removeBlock,blockname:"..tostring(block.name))
self.blocks[tostring(block)]:free()
self.blocks[tostring(block)]=nil
end