
ObjectElement
-
- English
- yahwho
- Thread is Unresolved
-
-
Hey, I'm not sure if I understood this correctly
Does that mean you want a separate class for different object types, e.g. for a storage object, there should be a new "Storage" class (instead of just the general ObjectElement)? In theory that's not impossible, but unfortunately the server only represents objects as a generic "ObjectElement"... the server only distinguishes the object based on the Objects.Type definition. For instance, if you want to check if an object is a storage, you basically have to grab the object definition and check the type, like this:
Or are you just looking for a new method to get the Objects.Type directly (without having to grab the object definition first)?
-
That should do the job nicely 👌
-
-
-
Blame that on lack of caffeine
Participate now!
Don’t have an account yet? Create a new account now and be part of our community!