コード例 #1
0
        /// <summary>
        /// This constructor is called by The C-DEngine during initialization in order to register this service
        /// </summary>
        /// <param name="pBase">The C-DEngine is creating a Host for this engine and hands it to the Plugin Service</param>
        public void InitEngineAssets(IBaseEngine pBase)
        {
            MyBaseEngine = pBase;
            MyBaseEngine.SetEngineName(this.GetType().FullName);                          //Can be any arbitrary name - recommended is the class name
            MyBaseEngine.SetEngineType(this.GetType());                                   //Has to be the type of this class
            MyBaseEngine.SetFriendlyName("C-Labs Mesh Receiver");                         //TODO: Step 1: Give your plugin a friendly name
            MyBaseEngine.SetEngineService(true);                                          //Keep True if this class is a service

            MyBaseEngine.SetEngineID(new Guid("{BF99690D-6114-427F-B17A-A606BE3145BD}")); //TODO: Step 2 - set Plugin GUID
            MyBaseEngine.SetPluginInfo("This service allows to receive data from a CDEngine mesh and place them into CDEngine Things.", 0, null, "", "C-Labs and its licensors", "http://www.c-labs.com", new List <string>()
            {
            });

            MyBaseEngine.SetCDEMinVersion(4.011);
            MyBaseEngine.AddManifestFiles(new List <string>
            {
            });
        }
コード例 #2
0
        /// <summary>
        /// InitEngineAssets - The C-DEngine calls this initialization
        /// function as part of registering this service (engine)
        /// </summary>
        /// <param name="pBase">The C-DEngine creates a base engine object.
        /// This parameter is a reference to that base engine object.
        /// We keep a copy because it will be very useful to us.
        /// </param>
        public void InitEngineAssets(IBaseEngine pBase)
        {
            MyBaseEngine = pBase;

            MyBaseEngine.SetEngineID(guidEngineID);          // Unique identifier for our service (engine)
            MyBaseEngine.SetFriendlyName(strFriendlyName);

            MyBaseEngine.SetEngineName(GetType().FullName);  // Can be any arbitrary name - recommended is the class name
            MyBaseEngine.SetEngineType(GetType());           // Has to be the type of this class
            MyBaseEngine.SetEngineService(true);             // Keep True if this class is a service
            MyBaseEngine.SetVersion(0);
            MyBaseEngine.SetCDEMinVersion(4.1111);

            MyBaseEngine.SetPluginInfo("This service lets you create and configure things.", // Describe plugin for Plugin Store
                                       0,                                                    // pPrice - retail price (default = 0)
                                       null,                                                 // Custom home page - default = /ServiceID
                                       "toplogo-150.png",                                    // pIcon - custom icon.
                                       "C-Labs",                                             // pDeveloper - name of the plugin developer.
                                       "http://www.c-labs.com",                              // pDeveloperUrl - URL to developer home page.
                                       new List <string>()
            {
            });                                                 // pCategories - Search categories for service.
        }