I have been trying to do something like the following:
Basically I want to be use GetValue on the property of a block without first knowing if its boolean, float so on.
Is this possible in Space Engineers?
Currently I am doing:
It would be nice to have more a more compact way of doing...
Generic GetValue Option?
Code:
myBlock.GetValue<T>(prop.Id);
Is this possible in Space Engineers?
Currently I am doing:
Code:
if (prop.TypeName == "Boolean") myBlock.GetValue<Boolean>(prop.Id); } else if(prop.TypeName == "Float") { myBlock.GetValue<float>(prop.Id); } Etc
Generic GetValue Option?