Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports named arguments in AddComponent and AddElemen #12880

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

Acensti
Copy link
Collaborator

@Acensti Acensti commented Sep 25, 2021

AddComponent/AddElement now support named arguments. This requires passing around an argument list instead of using actual proc args which a bit gross but we can blame byond for forcing this.

InheritComponent uses mirrored init arguments instead of an argument list which means no more accessing it via index to get to the same arguments as in init.

As a small bonus I restructured dcs defines to be a bit more manageable. Mainly just splits them into separate files and gives them their own folder.

ninjanomnom and others added 11 commits September 25, 2021 20:35
fix
fix
fix
This reverts commit 29a992f.
fix
This reverts commit 2201dbd.
fix
more fix
fix
fix
yoyobatty
yoyobatty previously approved these changes Sep 25, 2021
Copy link
Contributor

@yoyobatty yoyobatty left a comment

Choose a reason for hiding this comment

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

This saves me a big headache, thank you

@yoyobatty
Copy link
Contributor

image

but this needs to compile first

fix
fix
@Acensti Acensti changed the title addsupport upports named arguments in AddComponent and AddElemen Sep 25, 2021
@Acensti Acensti changed the title upports named arguments in AddComponent and AddElemen Supports named arguments in AddComponent and AddElemen Sep 25, 2021
finally more fixes
 fix
fix
fix
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.

3 participants