1. Hello! I've been programming professionally for a few years now, but Modding is still something I need to brush up on (and in this case I mean Oxide).

    I'm familiar with Oxide's Hooks and understand that the best way to learn the ropes is by looking at existing plugins' source and trial & error. But there are some structures/classes that I've seen and would like to understand better.

    For instance, BasePlayer and ItemManager. I see these classes used fairly often, but I have only the vaguest ideas of what their definitions/members look like. Where can I find this documentation? Or, how would one "print" the members/types of the arguments that Oxide's hooks receive?

    Some of the code I've seen resembles objects Unity, so I've attempted some investigation with code similar to the following function:
    Code:
    OnPlayerAttack: function(attacker, info)
        {
            print(attacker.childCount);
            for(var i = 0; i < attacker.childCount; i++)
            {
                print(attacker[i].name);
            }
        }
    I've tried a few variations of the above (even without Unity assumptions), but to no avail. Throw me a bone? Think of the kittens.
     
    Last edited by a moderator: Sep 12, 2015
  2. I think you missed the part where I said I was already familiar with that. /pull_out_hair
     
  3. Wulf

    Wulf Community Admin

    The stuff you are looking for is found in Rust's Assembly-CSharp.dll, which you can open with any .NET decompiler.
     
  4. I figured that was going to be the next step. Excellent, thanks. I've always admired your work.
     
  5. And I posted a link to it if you did not what the docs for it then why ask
     
  6. :) Don't worry about it, I got what I needed.

    Oi Wulf I saw your signature and got y'all a copy of SD. Thanks!
     
  7. Off topic but can anyone recommend a reliable free decompiler?
     
  8. Wulf

    Wulf Community Admin

    Thanks! Hoping they get multiplayer setup at least so we don't have to figure something out. ;)

    I like JustDecompiler, but I hope between a few. There's also dotPeek and .NET Reflector.
     
  9. telerik justdecompile