I have a virtual base class which is inherited by some other classes.
Thoses classes have there own addon-folder, so they are like a module.
-- core luafile
function Core:NewClass(name, ...)
self.classes[name] = AceOO.Class(BasicClass, ...)
self.classes[name].name = name
local UID = util:GetUID(game, math.random(0,1))
self.objects[UID] = self.classes[classname]:new(UID)
self.objects[obj.UID] = nil
-- another lua file
local DemoClass = Core:NewClass("DemoClass")
self.UID = UID
-- some more methods
-- test it
in reaction to the last line of the code the init func should be called but it never did.
and another problem is if I call the "Dispose"-func i gets an error, I think the error was to index a nil value.
so how could I solve this?
If you need more informations i could give them to you in about 7 hours.