TOOD -> TODO

This commit is contained in:
andy 2021-01-23 04:58:20 +00:00
parent a238ae3846
commit b6cc50360a
11 changed files with 14 additions and 14 deletions

View File

@ -420,7 +420,7 @@ impl EntityGateway for InMemoryGateway {
Ok(()) Ok(())
} }
// TOOD: impl bank name // TODO: impl bank name
async fn set_character_bank(&mut self, char_id: &CharacterEntityId, bank: &BankEntity, _bank_name: BankName) -> Result<(), GatewayError> { async fn set_character_bank(&mut self, char_id: &CharacterEntityId, bank: &BankEntity, _bank_name: BankName) -> Result<(), GatewayError> {
let mut banks = self.banks.lock().unwrap(); let mut banks = self.banks.lock().unwrap();
banks.insert(*char_id, bank.clone()); banks.insert(*char_id, bank.clone());

View File

@ -197,7 +197,7 @@ impl InventoryItem {
} }
} }
// TOOD: delete? // TODO: delete?
pub fn are_same_stackable_tool(&self, other_stacked_item: &StackedFloorItem) -> bool { pub fn are_same_stackable_tool(&self, other_stacked_item: &StackedFloorItem) -> bool {
match self { match self {
InventoryItem::Stacked(self_stacked_item) => { InventoryItem::Stacked(self_stacked_item) => {
@ -208,7 +208,7 @@ impl InventoryItem {
} }
} }
// TOOD: delete? // TODO: delete?
pub fn can_combine_stacks(&self, other_stacked_item: &StackedFloorItem) -> bool { pub fn can_combine_stacks(&self, other_stacked_item: &StackedFloorItem) -> bool {
match self { match self {
InventoryItem::Stacked(self_stacked_item) => { InventoryItem::Stacked(self_stacked_item) => {
@ -221,7 +221,7 @@ impl InventoryItem {
} }
// TODO: result // TODO: result
// TOOD: delete? // TODO: delete?
pub fn combine_stacks(&mut self, other_stacked_item: &mut StackedFloorItem) { pub fn combine_stacks(&mut self, other_stacked_item: &mut StackedFloorItem) {
match self { match self {
InventoryItem::Stacked(self_stacked_item) => { InventoryItem::Stacked(self_stacked_item) => {

View File

@ -1,4 +1,4 @@
// TOOD: `pub(super) for most of these?` // TODO: `pub(super) for most of these?`
use serde::{Serialize, Deserialize}; use serde::{Serialize, Deserialize};
use std::collections::HashMap; use std::collections::HashMap;
use thiserror::Error; use thiserror::Error;

View File

@ -1,4 +1,4 @@
// TOOD: `pub(super) for most of these?` // TODO: `pub(super) for most of these?`
use std::io::{Read}; use std::io::{Read};
use byteorder::{LittleEndian, ReadBytesExt}; use byteorder::{LittleEndian, ReadBytesExt};

View File

@ -1,4 +1,4 @@
// TOOD: `pub(super) for most of these?` // TODO: `pub(super) for most of these?`
use std::path::PathBuf; use std::path::PathBuf;
use std::io::{Read}; use std::io::{Read};
@ -96,7 +96,7 @@ fn parse_enemy(episode: &Episode, map_area: &MapArea, raw_enemy: RawMapEnemy) ->
monsters.push(Some(MapEnemy::new(MonsterType::VolOptCore, monster.map_area))); monsters.push(Some(MapEnemy::new(MonsterType::VolOptCore, monster.map_area)));
monsters.push(Some(MapEnemy::new(MonsterType::VolOptUnused, monster.map_area))); monsters.push(Some(MapEnemy::new(MonsterType::VolOptUnused, monster.map_area)));
}, },
// TOOD: this cares about difficulty (theres an ult-specific darvant?) // TODO: this cares about difficulty (theres an ult-specific darvant?)
MonsterType::DarkFalz => { MonsterType::DarkFalz => {
for _ in 0..509 { for _ in 0..509 {
monsters.push(Some(MapEnemy::new(MonsterType::Darvant, monster.map_area))); monsters.push(Some(MapEnemy::new(MonsterType::Darvant, monster.map_area)));

View File

@ -1,4 +1,4 @@
// TOOD: `pub(super) for most of these?` // TODO: `pub(super) for most of these?`
use std::io::{Read}; use std::io::{Read};

View File

@ -1,4 +1,4 @@
// TOOD: `pub(super) for most of these?` // TODO: `pub(super) for most of these?`
use rand::Rng; use rand::Rng;

View File

@ -119,7 +119,7 @@ pub fn character_leveled_up(area_client: AreaClient, level: u32, before_stats: C
} }
} }
// TOOD: checksum? // TODO: checksum?
pub fn bank_item_list(bank: &CharacterBank, char_bank_meseta: u32) -> BankItemList { pub fn bank_item_list(bank: &CharacterBank, char_bank_meseta: u32) -> BankItemList {
BankItemList { BankItemList {
aflag: 0, aflag: 0,

View File

@ -7,7 +7,7 @@ use crate::ship::location::{ClientLocation, ClientLocationError};
use crate::ship::packet::builder::quest; use crate::ship::packet::builder::quest;
use libpso::util::array_to_utf8; use libpso::util::array_to_utf8;
// TOOD: enum // TODO: enum
enum QuestFileType { enum QuestFileType {
Bin, Bin,
Dat Dat

View File

@ -653,7 +653,7 @@ impl<EG: EntityGateway> ServerState for ShipServerState<EG> {
handler::room::cool_62(id, cool62, &block.client_location) handler::room::cool_62(id, cool62, &block.client_location)
}, },
RecvShipPacket::ClientCharacterData(_) => { RecvShipPacket::ClientCharacterData(_) => {
// TOOD: validate this in some way? // TODO: validate this in some way?
Box::new(None.into_iter()) Box::new(None.into_iter())
}, },
RecvShipPacket::DoneBursting(_) => { RecvShipPacket::DoneBursting(_) => {

View File

@ -523,7 +523,7 @@ async fn test_techs_disappear_from_shop_when_bought() {
}).unwrap(); }).unwrap();
} }
// TOOD: this is not deterministic and can randomly fail // TODO: this is not deterministic and can randomly fail
#[async_std::test] #[async_std::test]
async fn test_units_disappear_from_shop_when_bought() { async fn test_units_disappear_from_shop_when_bought() {
let mut entity_gateway = InMemoryGateway::new(); let mut entity_gateway = InMemoryGateway::new();