コード例 #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>
            {
            });
        }