diff --git a/src/entities/enemy/base.rs b/src/entities/enemy/base.rs new file mode 100644 index 0000000..c330af7 --- /dev/null +++ b/src/entities/enemy/base.rs @@ -0,0 +1,7 @@ + + +pub trait EnemyBase { + fn render(); + fn handle_logic(); + fn handle_getting_attacked(); +} \ No newline at end of file diff --git a/src/entities/enemy/mod.rs b/src/entities/enemy/mod.rs new file mode 100644 index 0000000..307b359 --- /dev/null +++ b/src/entities/enemy/mod.rs @@ -0,0 +1 @@ +pub mod base; \ No newline at end of file diff --git a/src/entities/mod.rs b/src/entities/mod.rs index e948307..5bf6e50 100644 --- a/src/entities/mod.rs +++ b/src/entities/mod.rs @@ -1 +1,2 @@ -pub mod fish; \ No newline at end of file +pub mod fish; +pub mod enemy; \ No newline at end of file