Two types - multiple inheritance?
Posted: Thu May 18, 2017 1:07 pm
I'm trying to make a powered floor mod, so I want my prototype to have both type = "electric-pole" and type = "tile" features. I assume there is no type ="electric-pole, tile" syntax. So I started with type = "electric-pole" and tried to add concrete-y bits to it, but I suspect I need to make my powered-floor based on something higher up the tree - like "item".
Is there lua code somewhere that I can copy that implements these two types (which I think of as base classes) ? Is there a reference for what the types themselves actually are? I see examples of types in the base code, but haven't seen any type definitions.
Apologies if this has been answered previously, my searching of the forum for this wasn't fruitful.
Also, if someone has already done this mod, let me know!
Is there lua code somewhere that I can copy that implements these two types (which I think of as base classes) ? Is there a reference for what the types themselves actually are? I see examples of types in the base code, but haven't seen any type definitions.
Apologies if this has been answered previously, my searching of the forum for this wasn't fruitful.
Also, if someone has already done this mod, let me know!