Recommended Practices and Pitfalls - EverestAPI/Resources GitHub Wiki
These are some code features and techniques that may seem useful for code mods, but that can cause various issues if used (usually related to cross-platform compatibility).
This is a hacky way to call a "base base method", for use in override
methods where skipping the direct base.
method call is desired. (f.e. when inheriting from a vanilla class).
This crashes on MacOS for unknown reasons.
The recommended practice is to make use of the MonoModLinkTo
attribute as shown here π
DynamicData
π on struct
π with getters
Creating a DynamicData
instance with a struct containing getters/properties will throw a System.InvalidProgramException
on mono, this might be a MonoMod bug π.
Until it gets fixed, you need to use reflection π to access the members.
Just Don't Use Themβ’