示例#1
0
        private void Start()
        {
            Logger             = base.Logger;
            Util.Logger.logger = Logger;

            IsVerbose = Config.Bind("Heelz", "Heelz Verbose Mode", false,
                                    new ConfigDescription("Make Heelz Plugin print all of debug messages in console. Useless for most of users."));
            LoadDevXML = Config.Bind("Heelz", "Load Developer XML", false,
                                     new ConfigDescription("Make Heelz Plugin load heel_manifest.xml file from game root folder. Useful for developing heels. Useless for most of users."));
            CharacterApi.RegisterExtraBehaviour <HeelsController>(GUID);
            HarmonyWrapper.PatchAll(typeof(HSHeelz));

            Logger.LogInfo("[Heelz] Heels mode activated: destroy all foot");
            var loadedManifests = Sideloader.Sideloader.Manifests.Values;

            foreach (var manifest in loadedManifests)
            {
                XMLLoader.LoadXML(manifest.manifestDocument);
            }

            if (LoadDevXML.Value)
            {
                XMLLoader.StartWatchDevXML();
            }
        }
示例#2
0
    static int LoadXML(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        XMLLoader <XMLDataBattle> obj = LuaScriptMgr.GetNetObject <XMLLoader <XMLDataBattle> >(L, 1);
        string arg0 = LuaScriptMgr.GetLuaString(L, 2);

        obj.LoadXML(arg0);
        return(0);
    }
示例#3
0
        private void Start()
        {
            Util.Log.Logger.logSource = Logger;
            ConfigUtility.Initialize(Config);
            CharacterApi.RegisterExtraBehaviour <HeelsController>(Constant.GUID);
            HarmonyWrapper.PatchAll(typeof(HeelzPlugin));
            Logger.LogInfo("[Heelz] Heels mode activated: destroy all foot");
            var loadedManifests = Sideloader.Sideloader.Manifests.Values;

            foreach (var manifest in loadedManifests)
            {
                XMLLoader.LoadXML(manifest.manifestDocument);
            }
            if (LoadDevXML.Value)
            {
                XMLLoader.StartWatchDevXML();
            }
        }
示例#4
0
 public static void LoadCurrSceneDialog(string sceneName)
 {
     dialogXDoc = XMLLoader.LoadXML(sceneName);
     convos     = XMLLoader.LoadConvos(dialogXDoc);
 }