0.4.0 • Published 6 months ago

@digibear/tags v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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.3.0

6 months ago

0.4.0

6 months ago

1.0.0

2 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago