Coder Social home page Coder Social logo

potato-documentation's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ebassie

potato-documentation's Issues

Where can I find examples of plugin development?

The main solution of Procon contains examples and unit tests for these examples. Simply clone the project at https://github.com/Myrcon/Procon-2 and open up the solution.

You should see examples in the "Examples" solution directory. There are corresponding unit tests for each example, though most of the tests are designed to help you step through working examples quickly.

The examples are included in the main solution so we can ensure each outgoing release has working examples and so plugin developers have to download the entire source of Procon. You might be able to help us :)

How do I create a plugin?

Instructions are pretty similar to those found at http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds

  1. Install NuGet
    http://docs.nuget.org/docs/start-here/installing-nuget
  2. Create a new Class Library project
    For Procon to pickup the plugin you are required to follow the naming convention "[Owners].Plugins.[PluginName]" like
    -- "Myrcon.Plugins.Autobalancer"
    -- "PapaCharlie.Plugins.Autobalancer.Balancer"
    -- "PapaCharlie.Plugins.Autobalancer.Scrambler"
  3. Add https://repo.myrcon.com/procon to your NuGet repositories
  4. Include NuGet package "Myrcon.Procon.Shared" from the myrcon repository
  5. Create a source file "Program.cs". Procon will look for the type "[PackageId].Package" to load.
using System;
using Procon.Core.Shared.Events;
using Procon.Core.Shared.Plugins;

namespace /* Your Package ID as the Namespace */ {
    public class Program : PluginController {

        public override void GenericEvent(GenericEventArgs e) {
            base.GenericEvent(e);

            if (e.GenericEventType == GenericEventType.PluginsPluginEnabled) {
                Console.WriteLine("Hello World!");
            }
        }
    }
}

  1. Done, next you'll want to look at publishing your plugin as a NuGet package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.