Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: Fizzlemizz
Forum: General Authoring Discussion 01-01-19, 12:06 AM
Replies: 4
Views: 1,675
Posted By Fizzlemizz
Your original code with a few print...

Your original code with a few print statements

Slot = {}
print("Slot =", Slot)
Slot.__index = Slot

setmetatable(Slot, {
__index = Container, -- makes the inheritance work
...
Forum: General Authoring Discussion 12-31-18, 07:59 PM
Replies: 4
Views: 1,675
Posted By Fizzlemizz
function Slot:is_a() adds the method to the table...

function Slot:is_a()
adds the method to the table when it is "built". Later when you call Slot:_init()
local s = Slot(1,1)

self.is_a = "Slot"
overwrites the function(method) with the string...
Showing results 1 to 2 of 2