Server should instantiate NPC monsters into the game. The engine should treat players and monsters exactly the same, this will reduce additional required code.
( Monster Entity )
- lifeforms.rs
- Add enum LifeFormType
- This will be used on the serverside to determine if the AI should operate on it
- Add enum LifeFormType
- Transform
- SpriteRender
- PlayerList
- Refactor to be LifeformList
- Contains a list of all the monsters (and players) in the game
- PlayerManSystem
- This should be refactored into "LifeformManSystem"
- MonsterAiSystem (new)
- Monsters should do some action every x ms (500 or something)
- This should push actions into the io list
- Actions are then acted on in the playerman system
- PlayerManSystem
- Refactored to LifeformManSystem
- ServerState
- Should create the lifeformlist
- Should insert all monsters
- These are loaded in MapList::new()
-
Cmd::InsertPlayer
- Refactor to IntertLifeform
-
Cmd::UpdatePlayer
- Refactor to UpdateLifeform
-
Cmd::RemovePlayer
- Refactor to RemoveLifeform
-
map.rs
- During an "new" event, should populate a "lifeformlist"
- That is drained out
- Should not draw L7 on the player side.