-
Notifications
You must be signed in to change notification settings - Fork 5
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
309 prepare ship systems for logic + power wires #310
Conversation
self.active_blocks.swap_remove(idx); | ||
} | ||
} | ||
|
||
/// Returns true if a structure block is within this line |
There was a problem hiding this comment.
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>>) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>>) { |
There was a problem hiding this comment.
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.
No description provided.