mirror of
https://github.com/rwengine/openrw.git
synced 2025-05-02 14:58:04 +03:00
Refactor Object Definition information to GameData
This commit is contained in:
parent
a4f0ef7f44
commit
5db4c28f04
18 changed files with 164 additions and 127 deletions
|
@ -3,18 +3,18 @@
|
|||
|
||||
#include <QAbstractItemModel>
|
||||
|
||||
#include <engine/GameWorld.hpp>
|
||||
#include <engine/GameData.hpp>
|
||||
|
||||
class ObjectListModel : public QAbstractTableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
GameWorld* _world;
|
||||
GameData* _gameData;
|
||||
|
||||
public:
|
||||
explicit ObjectListModel(GameWorld* _world, QObject *parent = 0);
|
||||
explicit ObjectListModel(GameData* gameDat, QObject *parent = 0);
|
||||
|
||||
GameWorld* world() const { return _world; }
|
||||
GameData* gameData() const { return _gameData; }
|
||||
|
||||
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue