Functions
registerProtectionZone
registerProtectionZone
allows you to register a protection zone given a starting position (startX
, startY
) and a IImageData
object. Returns a protectID
which can be used to unProtect
public registerProtectionZone(startX: number, startY: number, original: IImageData): number
removeProtection
Allows you to remove protection, supplied a protectID
public removeProtection(id: number);
Init
Setups the class so it is ready to be used.
public async Init(): Promise<void>
Last updated
Was this helpful?