Skip to content

Feature/component tags#73

Open
gueei wants to merge 4 commits into
ysfchn:mainfrom
gueei:feature/component-tags
Open

Feature/component tags#73
gueei wants to merge 4 commits into
ysfchn:mainfrom
gueei:feature/component-tags

Conversation

@gueei
Copy link
Copy Markdown

@gueei gueei commented Jun 2, 2026

Allow adding string tags to dynamic created components. Which include:

  • AddTag(component, string)
  • HasTag(component, string) : boolean
  • GetComponetsByTag(string): List
  • GetTags(component, string): LIst
  • RemoveTag(component, string)

Which is handy when multiple components of the same class are created, for example, making a shooting game you can spawn enemy and bullet and tag them respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant