AngeliA
Search Results for

    Show / Hide Table of Contents

    Class CheatSystem

    Core system to invoke function when user type cheat code during gameplay. Works like NES games. (it does nothing with anti-cheat)

    Properties

    CheatCodeCount

    Total loaded cheat code

    Declaration
    public static int CheatCodeCount { get; }

    CurrentParam

    Custom data from cheat code when it's invoking

    Declaration
    public static object CurrentParam { get; }

    Methods

    ForAllCheatCodes()

    Interate through all loaded cheat code inside the system

    Declaration
    public static IEnumerable<string> ForAllCheatCodes()

    GetCodeAt(int)

    Get cheat code at given index inside system list

    Declaration
    public static string GetCodeAt(int index)

    SetCheatCodeEnable(string, bool)

    Make given cheat code enable or disable

    Declaration
    public static void SetCheatCodeEnable(string code, bool enable)
    Parameters
    Type Name Description
    string code

    The target cheat code

    TryAddCheatAction(string, MethodInfo, object)

    Add given cheat code into system

    Declaration
    public static bool TryAddCheatAction(string code, MethodInfo method, object param = null)
    Parameters
    Type Name Description
    string code

    Code that user need to type. Ignore cases

    MethodInfo method

    Method that invokes when cheat code get triggered

    object param

    Custom data for this cheat code. Get this data inside the "method" with CheatSystem.CurrentParam

    Returns
    Type Description
    bool

    True if the data is successfuly added

    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค