todo to TODO
This commit is contained in:
1 parent
fa8969d6a2
commit
2fd8686fea
9 files changed
+21
-21
No files matched your search
@@ -80,7 +80,7 @@ pub fn authenticate(
|
||||
}
|
||||
|
||||
pub fn unpack_textures(property: Property, config: &TextureConfig) {
|
||||
// todo: no unwrap
|
||||
// TODO: no unwrap
|
||||
let from64 = general_purpose::STANDARD.decode(property.value).unwrap();
|
||||
let textures: ProfileTextures = serde_json::from_slice(&from64).unwrap();
|
||||
dbg!(&textures);
|
||||
|
||||
@@ -48,10 +48,10 @@ impl Client {
|
||||
}
|
||||
|
||||
pub fn handle_login_start(&mut self, server: &mut Server, login_start: SLoginStart) {
|
||||
// todo: do basic name validation
|
||||
// TODO: do basic name validation
|
||||
dbg!("login start");
|
||||
// default game profile, when no online mode
|
||||
// todo: make offline uuid
|
||||
// TODO: make offline uuid
|
||||
self.gameprofile = Some(GameProfile {
|
||||
id: login_start.uuid,
|
||||
name: login_start.name,
|
||||
@@ -59,7 +59,7 @@ impl Client {
|
||||
profile_actions: None,
|
||||
});
|
||||
|
||||
// todo: check config for encryption
|
||||
// TODO: check config for encryption
|
||||
let verify_token: [u8; 4] = rand::random();
|
||||
let public_key_der = &server.public_key_der;
|
||||
let packet = CEncryptionRequest::new(
|
||||
|
||||
@@ -136,7 +136,7 @@ impl Client {
|
||||
|
||||
pub fn teleport(&mut self, x: f64, y: f64, z: f64, yaw: f32, pitch: f32) {
|
||||
assert!(self.is_player());
|
||||
// todo
|
||||
// TODO
|
||||
let id = 0;
|
||||
let player = self.player.as_mut().unwrap();
|
||||
let entity = &mut player.entity;
|
||||
|
||||
@@ -49,7 +49,7 @@ impl Client {
|
||||
entity.x = position.x;
|
||||
entity.y = position.feet_y;
|
||||
entity.z = position.z;
|
||||
// todo: teleport when moving > 8 block
|
||||
// TODO: teleport when moving > 8 block
|
||||
|
||||
// send new position to all other players
|
||||
let on_ground = player.on_ground;
|
||||
|
||||
Reference in new issue
Block a user