Anti-Cheat Toolkit  2023.2.6
Multi-purpose anti-cheat solution for Unity Engine
AllowedAssembly Class Reference

Public Member Functions

 AllowedAssembly (string name, int[] hashes)
 
bool AddHash (int hash)
 

Properties

string Name [get]
 
int[] Hashes [get]
 

Detailed Description

Describes assembly which is added to the InjectionDetector "white list".

Constructor & Destructor Documentation

◆ AllowedAssembly()

AllowedAssembly ( string  name,
int[]  hashes 
)
inline

Constructs new instance.

Parameters
nameSets Name property.
hashesSets Hashes property.

Member Function Documentation

◆ AddHash()

bool AddHash ( int  hash)
inline

Allows adding new hash to the Hashes collection.

Parameters
hashNew whitelisted hash for the assembly with specified Name.
Returns
True if hash was added and false otherwise (i.e. when hash already existed in the collection).

Property Documentation

◆ Name

string Name
get

Assembly name, i.e.: ACTk.Runtime.

◆ Hashes

int [] Hashes
get

Array of whitelisted hashes for the assembly with given Name.