Thrive
script_wrappers.h
1 #pragma once
2 
3 #include <string>
4 
5 namespace CEGUI {
6 
7  class StandardItem;
8 }
9 
10 namespace luabind {
11 
12  class scope;
13 }
14 
15 namespace thrive {
16 
17 // StandardItemWrapper
19 public:
22  const std::string &text,
23  int id
24  );
25 
28 
30  CEGUI::StandardItem*
31  getItem();
32 
34  void markAttached();
35 
36 
37 private:
38 
39  bool m_attached;
40  CEGUI::StandardItem* m_item;
41 };
42 
43 class ScriptWrappers final{
44 public:
45  static luabind::scope
46  StandardItemWrapperBindings();
47 
48 };
49 
50 }
51 
void markAttached()
Once attached CEGUI will handle deleting so this stops the desctructor from deleting.
Definition: script_wrappers.cpp:43
~StandardItemWrapper()
Destroys the CEGUI object if it hasn't been attached.
Definition: script_wrappers.cpp:27
Definition: script_wrappers.h:5
StandardItemWrapper(const std::string &text, int id)
Constructs a wrapper around CEGUI::StandardItem(text, id)
Definition: script_wrappers.cpp:18
Definition: script_wrappers.h:43
CEGUI::StandardItem * getItem()
Returns the underlying CEGUI object.
Definition: script_wrappers.cpp:37
Definition: bullet_to_ogre_system.h:5
Definition: bullet_ogre_conversion.h:6
Definition: script_wrappers.h:18