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

309 prepare ship systems for logic + power wires #310

Merged
merged 10 commits into from
Aug 12, 2024

Conversation

AnthonyTornetta
Copy link
Owner

No description provided.

@AnthonyTornetta AnthonyTornetta linked an issue Aug 8, 2024 that may be closed by this pull request
self.active_blocks.swap_remove(idx);
}
}

/// Returns true if a structure block is within this line
Copy link
Collaborator

Choose a reason for hiding this comment

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

Comment should match the type of the parameter.

}
}

fn register_logic_connections_for_laser_cannon(blocks: Res<Registry<Block>>, mut registry: ResMut<Registry<LogicBlock>>) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

To keep the logic system uniform, you might move these logic systems to a file in the specific blocks folder, with the logic indicator and the others.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I'm going to keep the laser_cannon_input_event_listener in the laser_cannon_system file, since I think it's very coupled to laser cannon system logic, but I'll move the register_logic_connections_for_laser_cannon.

@@ -269,6 +281,49 @@ fn update_missile_system(
}
}

fn register_logic_connections_for_missile_launcher(blocks: Res<Registry<Block>>, mut registry: ResMut<Registry<LogicBlock>>) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as laser logic systems.

@DanielStebbins DanielStebbins merged commit 2f34c9a into main Aug 12, 2024
2 checks passed
@DanielStebbins DanielStebbins deleted the 309-prepare-ship-systems-for-logic-+-power-wires branch August 12, 2024 19:11
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.

Prepare ship systems for logic + power wires
2 participants