Difference between revisions of "ModdingHooks"
From wiki
(Created page with "{{{ In the Staxel.dll there is defined namespace Staxel.Modding { public interface IModHook : IDisposable { void GameContextInitializeInit(); void GameCon...") |
|||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
In the Staxel.dll | In the Staxel.dll | ||
there is defined | there is defined | ||
| − | namespace Staxel.Modding { | + | |
| + | <code>namespace Staxel.Modding { | ||
public interface IModHook : IDisposable { | public interface IModHook : IDisposable { | ||
| − | + | ... | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
} | } | ||
| − | } | + | }</code> |
To make a hooking make an assembly with a class that implements this interface publicly, and place this assembly next to the game .exe and it'll get loaded. | To make a hooking make an assembly with a class that implements this interface publicly, and place this assembly next to the game .exe and it'll get loaded. | ||
| − | + | Other hook-able types include: | |
| + | <code> | ||
| + | ICommandBuilder | ||
| + | IItemBuilder | ||
| + | IEntityAction | ||
| + | IEffectBuilder | ||
| + | IPlayerExtendedCommand | ||
| + | IVillagerEntityCommand | ||
| + | IVallagerEntityInstinct | ||
| + | IEntityLogicBuilder | ||
| + | IEntityPainterBuilder | ||
| + | ITileComponentBuilder | ||
| + | ITileConfigurationBuilder | ||
| + | ITileStateBuilder | ||
| + | </code> | ||
Latest revision as of 20:06, 6 January 2016
In the Staxel.dll
there is defined
namespace Staxel.Modding {
public interface IModHook : IDisposable {
...
}
}
To make a hooking make an assembly with a class that implements this interface publicly, and place this assembly next to the game .exe and it'll get loaded.
Other hook-able types include:
ICommandBuilder IItemBuilder IEntityAction IEffectBuilder IPlayerExtendedCommand IVillagerEntityCommand IVallagerEntityInstinct IEntityLogicBuilder IEntityPainterBuilder ITileComponentBuilder ITileConfigurationBuilder ITileStateBuilder