This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn tick_players(&mut self) { | |
for p in self.player_list.iter_mut() { | |
let world = self.get_world(p); // boom error taking multiple reference to self. But this is perfectly fine as it doesn't touch player_list.. | |
p.tick(&self.server_info, world, &mut self.packet_list); | |
} | |
} | |
fn get_world(&mut self, dimension: Dimension) -> &mut World { | |
match dimension { | |
Dimension::Overworld => &mut self.overworld, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-16"?> | |
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> | |
<TypePattern DisplayName="COM interfaces or structs"> | |
<TypePattern.Match> | |
<Or> | |
<And> | |
<Kind Is="Interface" /> | |
<Or> | |
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" /> | |
<HasAttribute Name="System.Runtime.InteropServices.ComImport" /> |