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

Refactor common code #2226

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

Ruzihm
Copy link
Contributor

@Ruzihm Ruzihm commented Feb 23, 2025

Puts code common among server, client, compiler into an OpenDreamCommon assembly
Puts code common among only server and compiler into a NoClient assembly (currently just for the MD5 call)
Removes compiler from server (#1490)
Deduplicates DreamValueType and DMValueType into just DMValueType. (these were different for some reason)

@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Feb 23, 2025

/// <summary>
/// Custom attribute for declaring <see cref="OpcodeMetadata"/> metadata for individual opcodes
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
internal sealed class OpcodeMetadataAttribute : Attribute {
public sealed class OpcodeMetadataAttribute : Attribute {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change was to allow referencing OpcodeMetadataAttribute into this common assembly class from the compiler assembly. Let me know if there's a better approach.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

InspectCode found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@Ruzihm Ruzihm marked this pull request as draft February 23, 2025 05:29
@Ruzihm Ruzihm marked this pull request as ready for review February 23, 2025 05:39
@Ruzihm
Copy link
Contributor Author

Ruzihm commented Feb 23, 2025

worried for a sec 😅 but it looks like goon broke the compilation 🫢

Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant