The server is building, but still needs work

There is some missing character creation/unloading code, and there are a
few other issues highlighted by TODO tags, see below.

In general, 'mapIndex' has been renamed to 'roomIndex'. Multiple rooms
have not been fully implemented yet, but I'm working on it.

Other issues:

* FileFormat needs to be changed to MapLoader
* Server's character movement is still slaved to the clients

The client does not build.
This commit is contained in:
Kayne Ruse
2014-06-07 02:12:40 +10:00
parent cac273da5e
commit 63be0ee70d
10 changed files with 85 additions and 56 deletions
+11 -5
View File
@@ -22,6 +22,11 @@
#ifndef ROOMDATA_HPP_
#define ROOMDATA_HPP_
//map system
#include "map_allocator.hpp"
#include "map_file_format.hpp"
#include "region_pager.hpp"
struct RoomData {
enum class RoomType {
OVERWORLD,
@@ -31,11 +36,12 @@ struct RoomData {
CAVES,
};
/* TODO: more
* "multiple rooms system" using this structure
* Pager
* collision map
*/
//members
RegionPager<LuaAllocator, LuaFormat> pager;
RoomType type;
//TODO: collision map
//TODO: NPCs?
};
#endif