AmpHelper
Public Member Functions | Static Public Member Functions | List of all members
AmpHelper.Interfaces.ITweak Interface Reference

The base interface for all tweaks. More...

Inheritance diagram for AmpHelper.Interfaces.ITweak:
AmpHelper.Tweaks.UnlockAllTweak AmpHelper.Tweaks.UnlockFpsTweak

Public Member Functions

ITweak SetPath (string path)
 Sets the path to the unpacked game files More...
 
bool IsEnabled ()
 Checks if the tweak is enabled More...
 
void EnableTweak ()
 Enables the tweak More...
 
void DisableTweak ()
 Disables the tweak More...
 

Static Public Member Functions

static IEnumerable< InstantiableTweakInfoGetTweaks (AppDomain domain=null)
 Finds all classes conforming to ITweak in the domain. More...
 

Detailed Description

The base interface for all tweaks.

Classes implementing this interface should add the Attributes.TweakInfo attribute.

Member Function Documentation

◆ DisableTweak()

void AmpHelper.Interfaces.ITweak.DisableTweak ( )

Disables the tweak

Implemented in AmpHelper.Tweaks.UnlockAllTweak, and AmpHelper.Tweaks.UnlockFpsTweak.

◆ EnableTweak()

void AmpHelper.Interfaces.ITweak.EnableTweak ( )

Enables the tweak

Implemented in AmpHelper.Tweaks.UnlockAllTweak, and AmpHelper.Tweaks.UnlockFpsTweak.

◆ GetTweaks()

static IEnumerable< InstantiableTweakInfo > AmpHelper.Interfaces.ITweak.GetTweaks ( AppDomain  domain = null)
inlinestatic

Finds all classes conforming to ITweak in the domain.

Parameters
domainThe domain to search, or the current domain if left null.
Returns

◆ IsEnabled()

bool AmpHelper.Interfaces.ITweak.IsEnabled ( )

Checks if the tweak is enabled

Returns
The status of the tweak

Implemented in AmpHelper.Tweaks.UnlockAllTweak, and AmpHelper.Tweaks.UnlockFpsTweak.

◆ SetPath()

ITweak AmpHelper.Interfaces.ITweak.SetPath ( string  path)

Sets the path to the unpacked game files

Parameters
pathPath to the unpacked game files
Returns
The current instance of the tweak

Implemented in AmpHelper.Tweaks.UnlockAllTweak, and AmpHelper.Tweaks.UnlockFpsTweak.


The documentation for this interface was generated from the following file: