Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

feat!: script commands#107

Merged
qudix merged 4 commits intomainfrom
feat!/commands
Sep 27, 2023
Merged

feat!: script commands#107
qudix merged 4 commits intomainfrom
feat!/commands

Conversation

@qudix
Copy link
Contributor

@qudix qudix commented Sep 27, 2023

  • add Script::GetConsoleCommands and Script::GetScriptCommands, these return a span allowing you to iterate over all of the commands.
  • change the GetFirst functions to return a pointer to the command rather than a copy

With the new functions one could achieve pretty much the same result as the GetFirst functions by calling front() on the span, which begs the question: do we keep the old ones?

@ThirdEyeSqueegee
Copy link
Contributor

do we keep the old ones?

unnecessary imo

@qudix qudix merged commit 11dde93 into main Sep 27, 2023
@qudix qudix deleted the feat!/commands branch September 27, 2023 22:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants