0.5.0 • Published 10 months ago

@digibear/tags v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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

0.5.0

10 months ago

0.3.0

2 years ago

0.4.0

2 years ago

1.0.0

4 years ago

0.2.15

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago