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 support for decoding fog parameters to the FileFormats library #354

Merged
merged 5 commits into from
Jan 31, 2024

Commits on Jan 31, 2024

  1. Client: Enable hex-string to RGBA color conversions

    These are required in order to decode the fog parameters table.
    rdw-software committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    fa185ad View commit details
    Browse the repository at this point in the history
  2. Client: Add a __tostring metamethod for Color instances

    Much easier to debug if it doesn't just display the default "cdata" representation.
    rdw-software committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    9f112be View commit details
    Browse the repository at this point in the history
  3. Core: Add a modified version of the fog parameters decoder

    The code is ancient; it was part of the now-archived RagnarokTools repository. I didn't change too much about it so it's still questionable, but I suppose that's really not a problem here. Only minor adjustments were made to make use of the Color metatype and to make the code more testable.
    rdw-software committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    4630236 View commit details
    Browse the repository at this point in the history
  4. Tests: Add unit tests for the fog parameters decoder

    Extremely unlikely to change, so this minimal test case should suffice.
    rdw-software committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    56d2f01 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3486b9e View commit details
    Browse the repository at this point in the history