Beispiel #1
0
        public bool Load()
        {
            bool state = include(g_EntryFileName);

            if (state)
            {
                InternalHandle h = engine.GlobalObject.GetProperty("PluginInfo");
                if (!h.IsObject)
                {
                    Logger.LogError(g_EntryFileName + " has no 'PluginInfo' defined.");
                    return(false);
                }
                pluginInfo             = new PluginInfo();
                pluginInfo.Name        = h.GetProperty("Name").AsString;
                pluginInfo.Version     = h.GetProperty("Version").AsString;
                pluginInfo.Author      = h.GetProperty("Author").AsString;
                pluginInfo.Description = h.GetProperty("Description").AsString;
            }
            return(state);
        }