载入中...
搜索中...
未找到
Model.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Object.h"
4#include "simplesquirrel/simplesquirrel.hpp"
5#include <map>
6#include <list>
7#include <vector>
8
9namespace eve
10{
11
13class Model : public Object
14{
15public:
17 Model(ssq::Object object);
18protected:
19
20 ssq::Object object;
21};
22
24class ModelClass : public Model
25{
26public:
27 std::vector<ssq::Object> attrs;
28};
29
31class ModelVector : public Model
32{
33public:
34
35};
36
38class ModelMap : public Model
39{
40public:
41
42};
43
46{
47public:
48
49
50protected:
51 std::list<std::map<Model*, std::vector<Object*>>> models;
52};
53
54
55
56} // namespace eve
Model with a list of Squirrel attribute objects.
Definition Model.h:25
std::vector< ssq::Object > attrs
Definition Model.h:27
Registry tracking Model → Object relationships.
Definition Model.h:46
std::list< std::map< Model *, std::vector< Object * > > > models
Definition Model.h:51
Model that maps to a Squirrel table (key/value).
Definition Model.h:39
Model that maps to a Squirrel array.
Definition Model.h:32
Script-backed model: wraps a Squirrel object (table/class instance).
Definition Model.h:14
ssq::Object object
Definition Model.h:20
Object is the base class for all game objects. It provides reference counting and dirty flag for upda...
Definition Object.h:18
Definition Build.cpp:11