Advertisement
glados123123123123

Untitled

Dec 21st, 2023
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.56 KB | None | 0 0
  1. using BepInEx;
  2. using BepInEx.Logging;
  3. using HarmonyLib;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Collections;
  7. using System.Diagnostics;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using TombsMadnessMod.Patches;
  12. using UnityEngine;
  13. using UnityEngine.PlayerLoop;
  14. using UnityEngine.Windows;
  15. using DunGen;
  16. using Microsoft.VisualBasic.Devices;
  17.  
  18. namespace TombsMadnessMod
  19. {
  20.     [BepInPlugin(modGUID, modName, modVersion)]
  21.  
  22.     public class TombsMadnessModBase : BaseUnityPlugin
  23.     {
  24.         private const string modGUID = "TombVali.TombsMadnessMod";
  25.         private const string modName = "Tomb's Madness Mod";
  26.         private const string modVersion = "1.0.0.0";
  27.  
  28.         private readonly Harmony harmony = new Harmony(modGUID);
  29.  
  30.         private static TombsMadnessModBase Instance;
  31.  
  32.         internal ManualLogSource mls;
  33.  
  34.         void Awake()
  35.         {
  36.             if(Instance == null)
  37.             {
  38.                 Instance = null;
  39.             }
  40.             mls = BepInEx.Logging.Logger.CreateLogSource(modGUID);
  41.  
  42.  
  43.             mls.LogInfo("TOMB IN DA SHIZOUCE :)");
  44.             harmony.PatchAll(typeof(TombsMadnessModBase));
  45.             harmony.PatchAll(typeof(PlayerControlerBPatch));
  46.             harmony.PatchAll(typeof(ForestGiantAI));
  47.  
  48.         }
  49.        
  50.         void Update()
  51.         {
  52.             GameObject testObject = LC_API.BundleAPI.BundleLoader.GetLoadedAsset<GameObject>("testobject");
  53.             Instantiate(testObject);
  54.             mls.LogInfo("here have a cube");
  55.         }
  56.  
  57.     }
  58. }
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement