Emergency 20 Dokumentation  4.2.0
EndlessGameDataSource.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include <Rocket/Controls/DataSource.h>
14 
15 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
30  class EndlessGameDataSource : public Rocket::Controls::DataSource
31  {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Public methods ]
36  //[-------------------------------------------------------]
37  public:
39  virtual ~EndlessGameDataSource();
40 
41 
42  //[-------------------------------------------------------]
43  //[ Public virtual Rocket::Controls::DataSource methods ]
44  //[-------------------------------------------------------]
45  public:
46  virtual void GetRow(Rocket::Core::StringList& row, const Rocket::Core::String& table, int rowIndex, const Rocket::Core::StringList& columns) override;
47  virtual int GetNumRows(const Rocket::Core::String& table) override;
48 
49 
50  //[-------------------------------------------------------]
51  //[ Private definitions ]
52  //[-------------------------------------------------------]
53  private:
54  struct TableData
55  {
58  Rocket::Core::String points;
59  };
60 
61 
62  //[-------------------------------------------------------]
63  //[ Private data ]
64  //[-------------------------------------------------------]
65  private:
66  std::vector<TableData*> mTableData;
67 
68 
69  };
70 
71 
72 //[-------------------------------------------------------]
73 //[ Namespace ]
74 //[-------------------------------------------------------]
75 } // em5
Definition: ActionPriority.h:13
Endless game data source.
Definition: EndlessGameDataSource.h:30
virtual void GetRow(Rocket::Core::StringList &row, const Rocket::Core::String &table, int rowIndex, const Rocket::Core::StringList &columns) override
virtual int GetNumRows(const Rocket::Core::String &table) override
Definition: MiniMapWindow.h:43