Where to get class definitions and such?Solved

Completely new to umod and rust api.
I've Been looking at several plugins, looks fairly easy to make plugins in c# .. however, I can't seem to find any references to the objects, classes, or anythning else.
umod documentaion on web is very helpful and informative, but I can't for the life of me find any info on the sub-class components like for 'entity' or other objects. .. in other words.../

How would a person know that the sub-component of entity like "entity.ShortPrefabName.Contains ..." exists to begin with?

I get exactly how that call works (donl't need info on that specific call) ... but What OTHER things can be done with the 'entity' class ??  Where is the class or stucture documentaion on  'entity.???? class  <-- what options, sub-coponionts, etc... within this object ARE availiable other than the ones I see people already using in their mods??

I.E.> Is there a man page or site or anything that breaks down some of these classes, so that they can be properly accessed without having to wade through others already-existing mods and trying to guess and poke at all of this blindly?

thanks in advance.

The majority of game-specific code is found in the actual game DLLs. You can find these by using a .NET decompiler such as JustDecompile, and opening the desired DLL such as Assembly-CSharp.dll.
Hi,

I was actually wondering the same.

I loaded Assembly-CSharp.dll in JustDecompile but it looks pretty empty to me, what am I doing wrong?
See: https://i.imgur.com/nL7yGm0.png

Thanks.
Expand the tree on the left, or search.
Ok, I feel pretty stupid now, thank you.
5e13a8d5b2bc5.jpg Wulf
The majority of game-specific code is found in the actual game DLLs. You can find these by using a .NET decompiler such as JustDecompile, and opening the desired DLL such as Assembly-CSharp.dll.

Just did that ... Wow, No need for an api reference when you look at it like this.  - That opens up the whole world.. and my eyes, Thanks.



Merged post

Took me the entirety of about 2 minutes from first glance to find exactly the actual function I needed, and how to use it.  ... In my case it was "info.Initiator.isBuildingBlocked( position, orientation, bounds )"... or thereabouts. I put it into my mod and the function is working exactly as I had hoped.
5e13a8d5b2bc5.jpg Wulf
Expand the tree on the left, or search.

for some reason, I cannot PM you, so I will ask here...
are you the author of this plugin?
https://umod.org/plugins/home-protection

Its a very small plugin, very clean, only 8 lines of code when not considering the wrappers, etc.

If so, I have a proposed ver.2 that takes it from roughly 8 lines of code to roughly 10 lines of code and significantly / vastly improves uppon its intentions, removes its exploits.

feel free to delete this post after reading it if you like.

Rawze

for some reason, I cannot PM you, so I will ask here...
are you the author of this plugin?
https://umod.org/plugins/home-protection

Its a very small plugin, very clean, only 8 lines of code when not considering the wrappers, etc.

If so, I have a proposed ver.2 that takes it from roughly 8 lines of code to roughly 10 lines of code and significantly / vastly improves uppon its intentions, removes its exploits.

feel free to delete this post after reading it if you like.

It has a support section, which you are welcome to suggest or request changes under.

Locked automatically