Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-22 21:32:34 +0000
committerStijn Buys <ingar@osirion.org>2010-09-22 21:32:34 +0000
commita6f9773c358dd7d091ff64cbda504ab8d8066dd3 (patch)
tree226e23c4656957e908623ccda9d3d1c50240a0b4 /src/core/gameinterface.h
parentbbb43d1c15f2858573f5abb595aa62f8224e4d76 (diff)
full trading support for networked games
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r--src/core/gameinterface.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h
index 11cc0de..bdce1d3 100644
--- a/src/core/gameinterface.h
+++ b/src/core/gameinterface.h
@@ -9,6 +9,7 @@
#include "core/player.h"
#include "core/info.h"
+#include "core/inventory.h"
#include "model/vertexarray.h"
namespace core
@@ -61,12 +62,12 @@ public:
/// return the current game time
virtual unsigned long timestamp() const = 0;
-/*
- /// returns an info record
- virtual Info *info(const std::string &type, const std::string &label) = 0;
-*/
- /// returns an info record
- virtual Info *info(unsigned int id) = 0;
+
+ /// request info record with id
+ virtual Info *request_info(const unsigned int id) = 0;
+
+ /// request inventory for entity with id
+ virtual Inventory *request_inventory(Entity *entity) = 0;
/*----- mutators ------------------------------------------------- */