UNPKG

mistreevous

Version:

A library to declaratively define, build and execute behaviour trees, written in TypeScript for Node and browsers

23 lines (22 loc) 568 B
export type AttributeDetails = { /** The attribute type. */ type: string; /** The attribute arguments. */ args: any[]; }; /** * A base node attribute. */ export default abstract class Attribute<TAttributeDetails extends AttributeDetails = AttributeDetails> { type: string; args: any[]; /** * @param type The node attribute type. * @param args The array of attribute arguments. */ constructor(type: string, args: any[]); /** * Gets the attribute details. */ abstract getDetails(): TAttributeDetails; }