Show / Hide Table of Contents

    Class MonoModIfFlag

    MonoMod "if" attribute. Apply it onto a type / method / field and it gets ignored if MonoModder.Data[key] equals false. If fallback (true by default) is false, it also gets ignored if MonoModder.Data[key] is undefined.

    Inheritance
    System.Object
    MonoModIfFlag
    Namespace: MonoMod
    Assembly: MonoMod.dll
    Syntax
    public class MonoModIfFlag : Attribute

    Constructors

    MonoModIfFlag(String)

    Declaration
    public MonoModIfFlag(string key)
    Parameters
    Type Name Description
    System.String key

    MonoModIfFlag(String, Boolean)

    Declaration
    public MonoModIfFlag(string key, bool fallback)
    Parameters
    Type Name Description
    System.String key
    System.Boolean fallback
    Back to top Yet another C# modding swiss army knife.