The project's repository is archived as part of the GitHub Archive Program. RogueLibs' code and the documentation will no longer be updated.
Extra Stuff
RogueLibs provides a couple of extra interfaces that you can use for any supported custom content hooks: IDoUpdate
, IDoFixedUpdate
. These interfaces correspond to the Update
and FixedUpdate
Unity methods (not directly, but through the game's Updater
class).
IDoUpdate
and IDoFixedUpdate
If you want to update your items/traits/effects/objects with Unity's Update
or FixedUpdate
, implement these interfaces:
- IDoUpdate
- IDoFixedUpdate
public class MyCustomItem : CustomItem, IDoUpdate
{
public void Update()
{
/* ... */
}
}
public class MyCustomItem : CustomItem, IDoFixedUpdate
{
public void FixedUpdate()
{
/* ... */
}
}
The project's repository is archived as part of the GitHub Archive Program. RogueLibs' code and the documentation will no longer be updated.