1. Is it possible to set some additional data (attribute) on the object (loot or storage container e.g.)?

    For example a custom name (description) for certain wooden box?

    Currently I store the data in in external dictionary linked with entityID.
     
  2. Look into extension methods, you could have simply Googled this.
     
  3. Do you mean standard C# extension methods?

    Well, I can call some void and do something with the object but not to store some additional data in it.
     
  4. Wulf

    Wulf Community Admin

    If I'm understanding what you are wanting to do, I don't think it'd really be possible. You'd likely need to store what you want in something else that is associated with the ID or whatever of that specific object/entity.

    In terms of extension methods on Rust classes/types (or any), that would generally be considered pollution as it could cause conflicts and such if multiple plugins try to handle the same thing. I'm not sure that this is what you're looking to do though either way.
     
  5. It's not how I'd implement it, but it looks like what he wants to do, which would be the only way. I assume by attribute he means property, since that's the meaning in other languages.