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

feat: partially functioning property behavior ui (no saving or loading yet) #1384

Merged
merged 28 commits into from
Jan 3, 2024

Conversation

EmosewaMC
Copy link
Collaborator

Updates the property behavior UI to be functional.

Does not implement saving or loading of behaviors.

Tested iteratively and at the end all messages in all (i believe all) contexts and did not spot any errors. Fortunately, there are little pointers being accessed in behavior contexts outside of serialization, so any faults will be in vector accesses failing with their respective .ats. The UI when you make changes and close the window should now save those changes on the local world for that behavior. If you remove the behavior the changes will be lost. If you shutdown the world the behavior will be lost. If you pickup the model the behaviors will be lost. This feature is not a small one and will take time for all the pieces to come together.

add SendBehaviorBlocksToClient serialization
add id generation and auto updating
add behaviorlisttoclient serialization
happened if you added state 0 and 6 and nothing in between
Use proper encapsulation to hide code away and only let specific objects do certain jobs.
Section off into operational chunks
Write data at the level most appropriate
Remove pointer usage for BlockDefinitions and move to optional.
remove const from return value
change to int from uint
use generic methods to reduce code clutter
fix an issue where if you were on an empty state, the server would allow you to remain on that state
fix an issue where the ui would not open on the previously opened state
fix an issue where deleting strips in order caused the wrong strips to be deleted
constify serialize

further include path fixes

use const, comments

fix amf message

Update ModelComponent.cpp

replace operator subscript with at
@EmosewaMC
Copy link
Collaborator Author

latest commit doesnt really make the include path smaller, but allows more work to be done in parallel

Xiphoseer
Xiphoseer previously approved these changes Jan 3, 2024
its precompiled, but just in case
Copy link
Member

@aronwk-aaron aronwk-aaron left a comment

Choose a reason for hiding this comment

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

Approved with nits

dGame/dPropertyBehaviors/Strip.h Show resolved Hide resolved
dGame/dPropertyBehaviors/State.h Show resolved Hide resolved
@aronwk-aaron aronwk-aaron merged commit c7c84c2 into main Jan 3, 2024
4 checks passed
@aronwk-aaron aronwk-aaron deleted the 803 branch January 3, 2024 13:35
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