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

Map saving improvements #10206

Merged
merged 2 commits into from Dec 2, 2023
Merged

Map saving improvements #10206

merged 2 commits into from Dec 2, 2023

Conversation

Bod9001
Copy link
Member

@Bod9001 Bod9001 commented Nov 29, 2023

Map saver will now automatically detect Cross object references and save them,
maps saver now works with lists of cross object references and value types ( classes are a pain to compare )
Map saver now works in the editor when not playing
removes unnecessary logs from hub status

Copy link

Your PR has no registered changes in its description!

1 similar comment
Copy link

Your PR has no registered changes in its description!

public EventConnection Connection2 = new EventConnection();
public EventConnection Connection3 = new EventConnection();
public EventConnection Connection4 = new EventConnection();
public EventConnection Connection5 = new EventConnection();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use a list

Copy link
Member Author

Choose a reason for hiding this comment

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

the map saver, Would have to be expanded to support class comparison ( is the class exactly the same or is it different )
and then be able to serialise the differences if it's only slightly different, basically big pain in but

Copy link
Contributor

Choose a reason for hiding this comment

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

... this still doesn't explain why you cant have a list of connections to loop through to make the code cleaner and have the ability to expand to having more than just 5 connections.

Are each connection statitc to something that will never change? Then its better to use proper names rather than just numbers

Copy link
Member Author

Choose a reason for hiding this comment

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

so, with the list,
it needs to be able to compare with the prefab yes? , how do you compare a class?

Copy link
Member Author

Choose a reason for hiding this comment

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

because all it has is the object and type, I was thinking may be supporting structs but that seems like a dodgy implementation

Copy link
Member Author

Choose a reason for hiding this comment

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

you'd have to write a custom comparer for each class as well since its something not standard with classes

@Bod9001 Bod9001 merged commit aa4c60b into unitystation:develop Dec 2, 2023
2 of 3 checks passed
Copy link

github-actions bot commented Dec 2, 2023

Your PR was merged with no registered changes or there was a problem with the API caller.

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.

None yet

2 participants