Browse Source

cleanup

pull/132/head
jake 2 years ago
parent
commit
4a6b2dfb8f
  1. 3
      src/ship/items/actions.rs
  2. 1
      src/ship/items/itemstateaction.rs
  3. 3
      src/ship/items/tasks.rs

3
src/ship/items/actions.rs

@ -26,9 +26,6 @@ use crate::ship::drops::{ItemDrop, ItemDropType};
use crate::ship::packet::builder;
use crate::ship::location::AreaClient;
//type BoxFuture<T> = Pin<Box<dyn Future<Output=T> + Send>>;
//type LBoxFuture<'a, T> = Pin<Box<dyn Future<Output=T> + Send + 'a>>;
pub enum TriggerCreateItem {
Yes,
No

1
src/ship/items/itemstateaction.rs

@ -1,5 +1,4 @@
use std::future::Future;
use futures::future::BoxFuture;
#[async_trait::async_trait]
pub trait ItemAction {

3
src/ship/items/tasks.rs

@ -1,4 +1,4 @@
use futures::future::{Future, BoxFuture};
use futures::future::BoxFuture;
use crate::ship::items::ClientItemId;
use crate::entity::item::Meseta;
@ -18,7 +18,6 @@ use crate::ship::drops::ItemDrop;
use crate::ship::items::actions;
//pub async fn pick_up_item<'a, EG>(
pub fn pick_up_item<'a, EG>(
item_state: &'a mut ItemState,
entity_gateway: &'a mut EG,

Loading…
Cancel
Save