8000 feat: introduce part_group_name and extra flasher fields by francisdb · Pull Request #136 · francisdb/vpin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: introduce part_group_name and extra flasher fields #136

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

Merged
merged 3 commits into from
Apr 2, 2025

Conversation

francisdb
Copy link
Owner

closes #135

@francisdb francisdb requested a review from Copilot April 1, 2025 19:28
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces the new field part_group_name across multiple game item modules and adds extra flasher-related fields as well as an exposure value in gamedata. The key changes include:

  • Adding an optional part_group_name field and updating shared attribute trait implementations to accommodate it.
  • Adjusting Biff read/write implementations in most game item modules to include the new field.
  • Introducing new flasher fields (render_mode, render_style, glass properties, image_src_link, backglass) and an exposure field in gamedata.

Reviewed Changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/vpx/gameitem/* Added part_group_name field and updated shared attribute logic.
src/vpx/gameitem/flasher.rs Added new rendering and glass-related fields for flasher.
src/vpx/gamedata.rs Introduced new exposure field with corresponding serialization.
src/vpx/gameitem/select.rs Updated shared attribute trait to include part_group_name.
src/vpx/gameitem/dragpoint.rs Modified BiffWrite implementation to a free function.
src/vpx/gameitem.rs Added PartGroup variant and updated GameItemEnum accordingly.
Comments suppressed due to low confidence (3)

src/vpx/gameitem/dragpoint.rs:203

  • [nitpick] Consider renaming the function 'biff_write' to better align with the trait-based BiffWrite implementations in other modules for consistency.
pub(super) fn biff_write(

src/vpx/gameitem/lightsequencer.rs:214

  • [nitpick] Ensure that the custom shared attribute serialization in LightSequencer remains consistent with other modules, particularly regarding the ordering when 'part_group_name' is present.
if let Some(editor_layer) = self.editor_layer {

src/vpx/gamedata.rs:1076

  • [nitpick] If a default exposure value of 1.0 is intended, consider initializing 'exposure' with 1.0 or documenting that None should be interpreted as 1.0.
exposure: None,                      // 1.0

@francisdb francisdb merged commit b5079f5 into main Apr 2, 2025
4 checks passed
@francisdb francisdb deleted the feat/part-groups branch April 2, 2025 07:41
@github-actions github-actions bot mentioned this pull request Apr 2, 2025
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.

Implement Part Groups
1 participant
0