Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Component

Interface defining a component. Usage:

class Health implements Component {
  name = "health";
  amount: number;

  constructor(amount: number) {
    this.amount = amount;
  }
}

Hierarchy

  • Component

Implemented by

Index

Properties

Properties

name

name: string

The component name. Mostly for debugging purposes.

Generated using TypeDoc