Browse Source

TOOD -> TODO

presents
andy 4 years ago
parent
commit
b6cc50360a
  1. 2
      src/entity/gateway/inmemory.rs
  2. 6
      src/ship/items/inventory.rs
  3. 2
      src/ship/map/area.rs
  4. 2
      src/ship/map/enemy.rs
  5. 4
      src/ship/map/maps.rs
  6. 2
      src/ship/map/object.rs
  7. 2
      src/ship/map/variant.rs
  8. 2
      src/ship/packet/builder/message.rs
  9. 2
      src/ship/packet/handler/quest.rs
  10. 2
      src/ship/ship.rs
  11. 2
      tests/test_shops.rs

2
src/entity/gateway/inmemory.rs

@ -420,7 +420,7 @@ impl EntityGateway for InMemoryGateway {
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> {
let mut banks = self.banks.lock().unwrap();
banks.insert(*char_id, bank.clone());

6
src/ship/items/inventory.rs

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

2
src/ship/map/area.rs

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

2
src/ship/map/enemy.rs

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

4
src/ship/map/maps.rs

@ -1,4 +1,4 @@
// TOOD: `pub(super) for most of these?`
// TODO: `pub(super) for most of these?`
use std::path::PathBuf;
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::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 => {
for _ in 0..509 {
monsters.push(Some(MapEnemy::new(MonsterType::Darvant, monster.map_area)));

2
src/ship/map/object.rs

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

2
src/ship/map/variant.rs

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

2
src/ship/packet/builder/message.rs

@ -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 {
BankItemList {
aflag: 0,

2
src/ship/packet/handler/quest.rs

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

2
src/ship/ship.rs

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

2
tests/test_shops.rs

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

Loading…
Cancel
Save