_binobj has string representation but it's not uniform so can't parse that.
IE
var/generator/G = generator("circle",1,22)
...
if(G.generator_type == "circle" && G.A == 1)
do_whatever()
ID:2652445
Feb 2 2021, 11:17 am
|
|||||||
| |||||||
Right now you can't check what generator we're using.
_binobj has string representation but it's not uniform so can't parse that. IE var/generator/G = generator("circle",1,22) |
Feb 2 2021, 3:16 pm
|
|
Not a bad idea, although I don't know how I'd do var access properly through the datum wrapper. I suppose one way to do it is just to add vars and set them in New().
|
Semi-Workaround for anyone who might stumble upon this
/** |