Skip to content

Added short syncing#104

Merged
brachy84 merged 3 commits intoGTNewHorizons:masterfrom
TheYoingLad:shortSync
Mar 19, 2026
Merged

Added short syncing#104
brachy84 merged 3 commits intoGTNewHorizons:masterfrom
TheYoingLad:shortSync

Conversation

@TheYoingLad
Copy link

I copied the interfaces and implementations from BooleanSyncValue and IntSyncValue and modified it to fit the short type.

Needed for GTNewHorizons/GT5-Unofficial/pull/6073

@brachy84
Copy link
Collaborator

Is this really needed? Short is rarely, almost never used. There is pretty much no point in using it except very minor memory saving.

@TheYoingLad
Copy link
Author

TheYoingLad commented Mar 18, 2026

If you think it's unnecessary I'll remove it.

I made this to avoid casting to short a few times in the MTEDebugStructureWriter as it uses shorts for the coordinates and offsets.

@TheYoingLad
Copy link
Author

TheYoingLad commented Mar 18, 2026

Plus there are already syncers for the other value types so why not have this as well?

@brachy84 brachy84 merged commit ad9579c into GTNewHorizons:master Mar 19, 2026
1 check passed
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.

2 participants