Skip to Main Content

BTD_Mod_Helper​.Api​.Helpers​.Instances


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Helpers

Instances Class

Provides quick access to many major BTD6 singleton classes

public class Instances

Inheritance UnityEngine.MonoBehaviour  Instances

Properties

Instances.BaseGameModel Property

The base GameModel class

public static GameModel BaseGameModel { get; }

Property Value

Il2CppAssets.Scripts.Models.GameModel

Instances.Bridge Property

The current UnityToSimulation bridge. Will be null if not in a game, or if the game isn't fully loaded in

public static UnityToSimulation Bridge { get; }

Property Value

Il2CppAssets.Scripts.Unity.Bridge.UnityToSimulation

Instances.Btd6CoopGame Property

The instance of the Btd6CoopGameNetworked class. Will be null if not in a coop game

public static Btd6CoopGameNetworked Btd6CoopGame { get; }

Property Value

Il2CppAssets.Scripts.Unity.Network.Btd6CoopGameNetworked

Instances.Btd6Player Property

The current Btd6Player

public static Btd6Player Btd6Player { get; }

Property Value

Il2CppAssets.Scripts.Unity.Player.Btd6Player

Instances.CashManager Property

The CashManager for the current player.

public static CashManager CashManager { get; }

Property Value

Il2CppAssets.Scripts.Simulation.CashManager

Instances.CoOpBridge Property

The current NetworkedUnityToSimulation bridge. Will be null if not in a coop game, or if the game isn't fully loaded in

public static UnityToSimulation CoOpBridge { get; }

Property Value

Il2CppAssets.Scripts.Unity.Bridge.UnityToSimulation

Instances.CoOpUnityToSimulation Property

The current NetworkedUnityToSimulation bridge. Will be null if not in a coop game, or if the game isn't fully loaded in

public static NetworkedUnityToSimulation CoOpUnityToSimulation { get; }

Property Value

Il2CppAssets.Scripts.Unity.Bridge.NetworkedUnityToSimulation

Instances.CurrentGameModel Property

The modified GameModel that's being used for the current game. Will be null if not in a game, or if the game isn't fully loaded yet

public static GameModel CurrentGameModel { get; }

Property Value

Il2CppAssets.Scripts.Models.GameModel

Instances.CurrentInGameData Property

The instance of the InGameData class for the current match

public static ReadonlyInGameData CurrentInGameData { get; }

Property Value

Il2CppAssets.Scripts.Unity.UI_New.InGame.ReadonlyInGameData

Instances.DisplayFactory Property

The current Display Factory

public static Factory DisplayFactory { get; }

Property Value

Il2CppAssets.Scripts.Unity.Display.Factory

Instances.FactoryFactory Property

The current FactoryFactory (factory for in game factories), or null if not in game

public static FactoryFactory FactoryFactory { get; }

Property Value

Il2CppAssets.Scripts.Simulation.Factory.FactoryFactory

Instances.Game Property

The instance of the Game class

public static Game Game { get; }

Property Value

Il2CppAssets.Scripts.Unity.Game

Instances.GameConnection Property

The instance of the GameConnection class. Will be null if not in a coop game

public static GameConnection GameConnection { get; }

Property Value

Il2CppNinjaKiwi.LiNK.Lobbies.GameConnection

Instances.GameData Property

The instance of the GameData class

public static GameData GameData { get; }

Property Value

Il2CppAssets.Scripts.Data.GameData

Instances.InGame Property

The current instance of the InGame class. Will be null if not in a match.

public static InGame InGame { get; }

Property Value

Il2CppAssets.Scripts.Unity.UI_New.InGame.InGame

Instances.InputManager Property

The InputManager for the current player.

public static InputManager InputManager { get; }

Property Value

Il2CppAssets.Scripts.Simulation.Input.InputManager

Instances.Map Property

The current Map in simulation, or null if not in game

public static Map Map { get; }

Property Value

Il2CppAssets.Scripts.Simulation.Track.Map

Instances.NextInGameData Property

The instance of the InGameData class that will be used for the next match

public static InGameData NextInGameData { get; }

Property Value

Il2CppAssets.Scripts.Unity.UI_New.InGame.InGameData

Instances.NKGI Property

The instance of the NKMultiGameInterface class. Will be null if not in a coop game

public static NKMultiGameInterface NKGI { get; }

Property Value

Il2CppNinjaKiwi.NKMulti.NKMultiGameInterface

Instances.NKMultiConnection Property

The instance of the NKMultiConnection class. Will be null if not in a coop game

public static NKMultiConnection NKMultiConnection { get; }

Property Value

Il2CppNinjaKiwi.LiNK.Lobbies.NKMultiConnection

Instances.PopupScreen Property

The current instance of the PopupScreen component

public static PopupScreen PopupScreen { get; }

Property Value

Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen

Instances.Profile Property

The current player's profile

public static ProfileModel Profile { get; }

Property Value

Il2CppAssets.Scripts.Models.Profile.ProfileModel

Instances.ShopMenu Property

The current instance of the ShopMenu component, may be null

public static ShopMenu ShopMenu { get; }

Property Value

Il2CppAssets.Scripts.Unity.UI_New.InGame.RightMenu.ShopMenu

Instances.Simulation Property

The current game Simulation. Will be null if not in a game, or if the game isn't fully loaded in.

public static Simulation Simulation { get; }

Property Value

Il2CppAssets.Scripts.Simulation.Simulation

Instances.TowerManager Property

The TowerManger for the current game. Will be null if not in a game, or if the game isn't fully loaded yet

public static TowerManager TowerManager { get; }

Property Value

Il2CppAssets.Scripts.Simulation.Towers.TowerManager

Instances.TowerSelectionMenu Property

The current instance of the TowerSelectionMenu component, may be null

public static TowerSelectionMenu TowerSelectionMenu { get; }

Property Value

Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenu

Instances.UnityToSimulation Property

The current UnityToSimulation bridge. Will be null if not in a game, or if the game isn't fully loaded in

public static UnityToSimulation UnityToSimulation { get; }

Property Value

Il2CppAssets.Scripts.Unity.Bridge.UnityToSimulation

To learn how to download BTD Mod Helper and install mods, click here