Changeset 3366
- Timestamp:
- 02/05/10 15:48:42 (7 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Engine/branches/0185_GEN_PHYSICS_REFACTOR_2/Client/I_GameClient.hpp
r3316 r3366 42 42 #include <Zen/Core/Event/Event.hpp> 43 43 44 #include <Zen/Core/Scripting/I_Scriptable Type.hpp>44 #include <Zen/Core/Scripting/I_ScriptableService.hpp> 45 45 #include <Zen/Core/Scripting/ObjectReference.hpp> 46 46 … … 60 60 namespace Zen { 61 61 namespace Engine { 62 namespace Rendering { 63 class I_RenderingCanvas; 64 } // namespace Rendering 65 namespace Widgets { 66 class I_WidgetService; 67 } // namespace Widgets 62 68 namespace Client { 63 69 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ … … 65 71 /// Basic game client interface 66 72 class CLIENT_DLL_LINK I_GameClient 67 : public virtual Zen::Scripting::I_Scriptable Type73 : public virtual Zen::Scripting::I_ScriptableService 68 74 , public Memory::managed_self_ref<I_GameClient> 69 75 { … … 88 94 typedef Memory::managed_ptr<I_GameClient> pScriptObject_type; 89 95 typedef Scripting::ObjectReference<I_GameClient> ScriptObjectReference_type; 96 typedef ScriptObjectReference_type ScriptWrapper_type; 97 typedef ScriptWrapper_type* pScriptWrapper_type; 90 98 /// @} 91 99 … … 93 101 /// @{ 94 102 public: 95 /// Get the window handle 103 /// Get the window handle. 96 104 virtual const WindowHandle_type getHandle() const = 0; 97 105 98 /// 106 /// Activate the script module for the game developer 107 /// script module. 99 108 virtual void activateGameClientScriptModule() = 0; 100 109 101 /// Initialize the Game Client 110 /// Initialize the Game Client. 102 111 virtual bool init() = 0; 103 112 104 /// Run the Game Client 113 /// Run the Game Client. 105 114 virtual void run() = 0; 115 116 /// Get the widget service. 117 virtual Widgets::I_WidgetService& getWidgetService() = 0; 118 119 /// Get the current rendering canvas. 120 virtual Rendering::I_RenderingCanvas& getRenderingCanvas() = 0; 121 122 /// Initialize the rendering service. 123 virtual bool initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes) = 0; 124 125 /// Initialize the terrain service. 126 virtual bool initTerrainService(const std::string& _type) = 0; 127 128 /// Initialize the sky service. 129 virtual bool initSkyService(const std::string& _type) = 0; 130 131 /// Initialize the input service. 132 virtual bool initInputService(const std::string& _type) = 0; 133 134 /// Initialize the widget service. 135 virtual bool initWidgetService(const std::string& _type) = 0; 106 136 /// @} 107 137
