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

Add events for deep copy and paste #665

Open
Drofseh opened this issue Mar 28, 2022 · 1 comment
Open

Add events for deep copy and paste #665

Drofseh opened this issue Mar 28, 2022 · 1 comment
Labels
enhancement Improves an existing feature

Comments

@Drofseh
Copy link

Drofseh commented Mar 28, 2022

As discussed with @mharis001 on ace slack.
Add events when deep copying and pasting objects.
Params should be at least _copiedObject for deep copy event and _copiedObject, _newObject for deep paste.

This could also possibly close #645, as mission makers could use event handlers to copy the variables themselves.

@Drofseh Drofseh added the enhancement Improves an existing feature label Mar 28, 2022
@Drofseh
Copy link
Author

Drofseh commented Mar 28, 2022

Maybe an event at the start and end of each would be good.

My use case is that I want to reapply scripted unit loadouts that have randomization in them. This would allow me to reroll the randomization, instead of having units be a carbon copy of the original.

An event at the start could set flags for what information is to be copied, or pasted.
This would avoid, for example, having to network sync the loadout twice if it gets updated by a paste event handler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant