Options
All
  • Public
  • Public/Protected
  • All
Menu

The Document definition for a Combatant. Defines the DataSchema and common behaviors for a Combatant which are shared between both client and server.

mixes

CombatantData

memberof

documents

param data

Initial data from which to construct the Combatant

param context

Construction context options

Hierarchy

Index

Constructors

Properties

metadata: any = ...

Default metadata which applies to each instance of this Document type.

Methods

  • #canUpdate(user: any, doc: any, data: any): any
  • Is a user able to update an existing Combatant?

    Parameters

    • user: any
    • doc: any
    • data: any

    Returns any

  • #canCreate(user: any, doc: any, data: any): any
  • Is a user able to create this Combatant?

    Parameters

    • user: any
    • doc: any
    • data: any

    Returns any