Does anyone have a C# template with all the best practices in place I can use as a starter?
I see several .CS plugins but not of them are consistent.
PS: are all oxide feature available in all languages that are supported? .py vs. .cs vs .lua ?
Best practice template for C#?
Discussion in 'Rust Development' started by Quicken, May 31, 2015.
-
http://oxidemod.org/threads/good-c-tutorials-for-beginners.8958/
hope that's what are you searching for -
Wulf Community Admin
Oxide supports C# (.cs), Lua (.lua), JavaScript (.js), and Python (.py) plugins. Each language has its own unique qualities, but in terms of Oxide they all have the same features and abilities. Existing plugins will not be all exactly the same, as they all do not do the same things or use the same functions, methods, etc. Using a template or copy/pasting another plugin and modifying it wouldn't be the best idea, instead taking the time to learn and see what each part of the plugin does would be better.
-
maybe I was not clear, not looking for anything about learning the language or the API.
I want a shell .CS file that has all the includes, onload, initialize, unload, etc. code snippets that are required. -
Wulf Community Admin
There would be a million includes/using statements if you wanted to do that. If you'd like examples, the existing plugins are the best choice. If you'd like to see the available hooks, you can look at https://github.com/OxideMod/Oxide/blob/master/Oxide.Ext.Rust/Plugins/HooksTest.cs or the Docs we provide. For ideas on where to go to learn C#, see http://oxidemod.org/threads/good-c-tutorials-for-beginners.8958/. -
I'm C# developer myself, but i'm missing explanation of where to start plugin development or how plugins works? Is there some kind of Sample plugin, which i can use to compile and test it's functionality?
-
Wulf Community Admin
You've got a few hundred plugins under the Plugins section that can serve as examples. Just download one, put it in the oxide/plugins folder on your server, and test.
