@digibear/tags

0.5.0 • Public • Published

@digibear/tags

Tags is an ECS system designed for use when creating UrsaMU

installation

yarn install @digibear/tags

Methods

  • add(tag: Tag) Add a new tag to the Tags system.
  • remove(name: string) Remove a tag from the tag system
  • set(tagList?: string, expression: String) Modify a list of flags with a flag expression.
  • check(tags: string, tagExpr: string) Check tags against tagExpr.
  • codes(list: string) Return a list of codes for the given flags if they exist.
interface Tag {
  name: string;
  code: string;
  data?: { [key: string]: any };
  lvl: number;
  lock?: string;
}

License

MIT

Development

yarn install

Testing

yarn run test

Readme

Keywords

none

Package Sidebar

Install

npm i @digibear/tags

Weekly Downloads

27

Version

0.5.0

License

MIT

Unpacked Size

19.6 kB

Total Files

12

Last publish

Collaborators

  • lcanady