Started C# porting git add . NOT WORKING FOR NOW
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
use crate::prelude::*;
|
||||
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
pub enum State {
|
||||
Normal,
|
||||
Infected,
|
||||
Dead,
|
||||
Immune,
|
||||
}
|
||||
pub struct Human {
|
||||
pub present_state : State,
|
||||
pub x : i32,
|
||||
pub y : i32,
|
||||
}
|
||||
impl Human{
|
||||
pub fn new(state : State, pos_x :i32, pos_y :i32) -> Self{
|
||||
Self{
|
||||
present_state : state,
|
||||
x : pos_x,
|
||||
y : pos_y
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user