Skip to content

SpriteSystem helpers to retrieve LayerMap keys#6635

Open
MLGTASTICa wants to merge 4 commits into
space-wizards:masterfrom
MLGTASTICa:spriteCompImprov
Open

SpriteSystem helpers to retrieve LayerMap keys#6635
MLGTASTICa wants to merge 4 commits into
space-wizards:masterfrom
MLGTASTICa:spriteCompImprov

Conversation

@MLGTASTICa

Copy link
Copy Markdown
Contributor

Adds a helper to retrieve a SpriteComp's layerMap keys. Usefull for systems working with dynamic mappings

@MLGTASTICa MLGTASTICa requested a review from PJB3005 as a code owner June 13, 2026 19:32
return sprite.Comp.LayerMap[key];
}

public bool LayerMapKeys(Entity<SpriteComponent?> sprite, [NotNullWhen(true)] out List<Object>? keys)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems quite burdersome to have this method possibly fallible. Just return the list directly?

Also, does this need to return a list instead of just an array?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it , was following the model of the other functions

@PJB3005 PJB3005 added the A: Rendering Anything related to putting pixels on the screen label Jun 18, 2026
@MLGTASTICa MLGTASTICa requested a review from PJB3005 June 18, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: Rendering Anything related to putting pixels on the screen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants