Class BridgeAbstractAbstract

Abstract class that provides an interface between the systems. To support a system it is required to implement a Bridge for it. That requires manual work on our part and should be always tested later.

Hierarchy (view full)

Constructors

Accessors

  • get attackHooks(): {
        name: string;
        value: string;
    }[]
  • Returns all the hooks useful for attack

    Returns {
        name: string;
        value: string;
    }[]

  • get itemHooks(): {
        name: string;
        value: string;
    }[]
  • Returns all the hooks useful for items

    Returns {
        name: string;
        value: string;
    }[]

Methods

  • Method that creates an item

    Parameters

    • targetUuid: string
    • items: any[]

    Returns Promise<void>

  • Method that delets an item

    Parameters

    • targetUuid: string
    • itemIds: string[]

    Returns Promise<void>

  • API method that creates an item

    Parameters

    • target: any
    • items: any[]

    Returns Promise<boolean>

  • API method that deletes an item

    Parameters

    • target: any
    • itemIds: string[]

    Returns Promise<boolean>

  • Method that extracts the basic information of an item

    Parameters

    • item: any

    Returns {
        image: any;
        name: any;
        owner: any;
    }

    • image: any
    • name: any
    • owner: any
  • Method that is called when a hook is triggered and returns the information that can be extract from it

    Parameters

    • workflow: any[]
    • source: HookType
    • from: string

    Returns any

  • Register the replicated methods

    Parameters

    • socket: any

      Instance of a socket from socketlib

    Returns any