Item
var/global/prototypes
var/global/list/stacks
var/global/list/names
proc/global/NewPrototype(title="",stack=0)
prototypes++
stacks.len = prototypes
stacks[prototypes] = stack
names.len = prototypes
names[prototypes] = title
Item.NewPrototype("Apple",1)
Now I don't know how to access the class. When I try just class name I get this error:
Item.dm:9:error: Item.NewPrototype: undefined var
Q: Is there any other way of integrating this system besides using helper class?
You'd be fine defining the variables in the global scope outright (as putting the global keyword where it is does that anyways), you'll also need to initialize those lists.