Skip to content

Commit

Permalink
Add event enum
Browse files Browse the repository at this point in the history
  • Loading branch information
sorokya committed Jul 16, 2024
1 parent 07e8cd2 commit 3a0946f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/world/event.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
use chrono::Utc;
use mail_send::mail_auth::zip::DateTime;

pub struct Event {
pub character_id: i32,
pub event_type: EventType,
}

pub enum EventType {
LoggedIn,
Disconnected,
DroppedItem,
PickedUpItem,
JunkedItem,
DepositedItem,
WithdrewItem,
TookChestItem,
AddedChestItem,
EnteredMap,
}
1 change: 1 addition & 0 deletions src/world/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mod command;
pub use command::Command;
mod event;
mod load_maps;
#[allow(clippy::module_inception)]
mod world;
Expand Down

0 comments on commit 3a0946f

Please sign in to comment.