Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

How can I inherit from script class?

$
0
0
So, I'm writing a class within my script. How can I inherit from the script's instance, so the class automatically gets access to local GridTerminalSystem, Me and other neaties? I can inherit from Program, but that is a type, not an instance (and does not contain local term in GTS, local PB in Me, etc). I can also pass GTS and Me into class constructor and then save them within class variables, but I'm looking for direct inheritance, not for workarounds.

Viewing all articles
Browse latest Browse all 645

Trending Articles