Hello,
I am starting to get a little further with C# learning when I get the time and my playground is Rust Oxide, Can someone explain what BasePlayer and BaseEntity return?
I was trying to make a simple plugin that will list all players on the server and I'm guessing BasePlayer is used.
A little explanation of what both BasePlayer and BaseEntity return would be great
Thanks!
Understanding BasePlayer and BaseEntity
Discussion in 'Rust Development' started by Nathan 3, Dec 5, 2016.
-
Wulf Community Admin
Sooo like my PlayerList plugin?
BasePlayer and BaseEntity don't return anything, they are essentially containers that provide various methods, objects, and variables.
If you aren't familiar with C# and how it works, I'd suggest starting there. After that, you can see everything for what you are looking for in Rust's Assembly-CSharp.dll. -
I had a look at your PlayerList plugin and I couldn't understand certain parts but that's maybe because i've not got that far into C# yet.
Code:players.Connected.Count(p => !p.IsAdmin && !permission.UserHasPermission(p.Id, permHide));
-
Edit: I would say it's actually one of the more advanced "concepts", but that's subjective! -
-
Wulf Community Admin
-
-
Anyways, I don't think that situation applies to you, so here are some resources I find helpful!
Obviously there is: C# Programming Guide!
Another thing I can recommend is: For learning, refreshing, or just for fun! • /r/dailyprogrammer! Daily Programmer is a Subreddit on Reddit. I think it's best if you just read through parts of this link if you want to know more about it: index - dailyprogrammer
I used to do challenges on Daily Programmer. Solving them usually involves a lot of googling for me and researching stuff online.
I usually end up on this website when I google stuff: Stack Overflow! You can ask questions about programming related stuff on Stack Overflow or just search for already asked questions and look if you find some helpful answers.
In the end the most important thing is to just code, code, code! I'm no great programmer but I hope I could help you. -