MCPcopy Create free account
hub / github.com/TanTanDev/rusty_demon_attack / process_command_optional

Method process_command_optional

src/player.rs:114–122  ·  view source on GitHub ↗
(&mut self, command_optional: Option<PlayerCommand>)

Source from the content-addressed store, hash-verified

112 }
113
114 pub fn process_command_optional(&mut self, command_optional: Option<PlayerCommand>) {
115 if let Some(player_command) = command_optional {
116 match player_command {
117 PlayerCommand::ChangeState(state) => {
118 self.state = state;
119 }
120 }
121 }
122 }
123
124 pub fn draw(&self) {
125 match self.state {

Callers 2

updateMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected