spaar.ModLoader Namespace |
Class | Description | |
---|---|---|
Commands |
Commands is used for all things regarding commands.
Mainly, you can register your own commands and help messages here.
| |
Configuration |
Utility class to store configuration values for your mod.
This is a basic Key-Value store and supports only strings as keys
and strings, ints, floats, doubles and bools as values.
This class also provides the setConfigValue command to users.
Configuration is stored in Mods/Config/<modname>.json.
| |
ConfigurationEventArgs |
EventArgs for the OnConfigurationChange event.
| |
Game |
Provides convenient access to various parts of the game that are often
needed by mods.
| |
Key | ||
Keybindings |
Class that allows mods to register keybindings. They can be changed
by the user in the keymapper window and are automatically saved and
loaded again.
| |
MachineData |
Allows mods to add data to machine save files.
| |
Mod |
Main entry point for mods.
Should be implemented by exactly one class per mod.
| |
ModConsole |
Provides methods for interacting with the in-game console.
| |
OptionsMenu |
OptionsMenu contains methods for adding an option (toggle button) to the
options menu in the main menu of Besiege.
| |
SettingsMenu |
SettingsMenu contains methods for adding a setting (toggle button) to the
settings drop-down of Besiege.
| |
SingleInstanceT |
Singleton for MonoBehaviours.
Creates a game object for your component if no instance is found.
| |
TemplateAttribute |
Use this to mark a class extending Mod as a template for other
people to extend. This will cause the class to not be loaded as a mod
and allows you to have more than one implementation of Mod.
| |
Util |
A collection of useful utility functions.
| |
Zone |
Represents a zone, which is an in-game level.
|
Delegate | Description | |
---|---|---|
CommandCallback |
Delegate to use with registering commands.
| |
MachineDataLoadCallback |
Called when a machine is loaded with the value that was loaded from
the save file.
Please note you also have to handle the case that a save file that was created without your mod installed is loaded. In this case, a value of NOTFOUND will be passed. | |
MachineDataSaveCallback |
Called when the machine is saved to retrieve the value to be saved.
| |
OnKeymapperOpen |
Handler delegate for Game.OnKeymapperOpen
| |
OnLevelWon |
Handler delegate for Game.OnLevelWon
| |
OnSimulationToggle |
Handler delegate for Game.OnSimulationToggle
| |
OptionsToggle |
Callback delegate for an option toggle.
| |
SettingsToggle |
Callback delegate for a toggle setting.
|
Enumeration | Description | |
---|---|---|
BlockType |
All block types in the game. These values can be used as indices to
AddPiece.blockTypes.
| |
Island |
Represents an in-game island. The sandbox is counted as a seperate island.
| |
Prefab |
All block prefabs in the game. These values can be used as indices to
MachineObjectTracker.AllPrefabs.
|