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

Standardize const usage #576

Merged
merged 8 commits into from
Nov 17, 2023
Merged

Conversation

lahm86
Copy link
Collaborator

@lahm86 lahm86 commented Nov 17, 2023

Resolves #575.

Checklist

Description

Some housekeeping to align const usage throughout the codebase by removing repeated definitions and hardcoded values.

I've also updated a couple of NuGet packages (test framework and common drawing), and cleared compiler noise, which appeared after the latest Visual Studio update.

Replaced the repeated redefinitions of 1024/1023 with TRConsts.Step4.
Replaced the repeated redefinitions of 768 with TRConsts.Step3.
Replaced the repeated redefinitions of 512 with TRConsts.Step2.
Replaced the repeated redefinitions of 256 with TRConsts.Step1.
Replaced redefinitions of 255 with TRConsts.NoRoom.
Replaced redefinitions of -127 with TRConsts.WallClicks.
Replaced redefinitions of 256 for textiles with relevant width, height and size consts.
IsWall is much clearer and easier to pronounce :)
@lahm86 lahm86 added this to the 1.8.0 milestone Nov 17, 2023
@lahm86 lahm86 self-assigned this Nov 17, 2023
@lahm86 lahm86 requested review from rr-, chreden and makotocchi November 17, 2023 12:13
@lahm86 lahm86 merged commit eced92f into LostArtefacts:master Nov 17, 2023
2 checks passed
@lahm86 lahm86 deleted the issue-575-const-usage branch November 18, 2023 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standardize const usage
2 participants