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