summaryrefslogtreecommitdiff
path: root/scene/resources/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/world.h')
-rw-r--r--scene/resources/world.h29
1 files changed, 13 insertions, 16 deletions
diff --git a/scene/resources/world.h b/scene/resources/world.h
index 1ad60f3405..a597633ca1 100644
--- a/scene/resources/world.h
+++ b/scene/resources/world.h
@@ -30,9 +30,9 @@
#define WORLD_H
#include "resource.h"
+#include "scene/resources/environment.h"
#include "servers/physics_server.h"
#include "servers/visual_server.h"
-#include "scene/resources/environment.h"
class SpatialIndexer;
class Camera;
@@ -41,42 +41,39 @@ class VisibilityNotifier;
class World : public Resource {
GDCLASS(World, Resource);
RES_BASE_EXTENSION("wrd");
+
private:
RID space;
RID scenario;
- SpatialIndexer* indexer;
+ SpatialIndexer *indexer;
Ref<Environment> environment;
protected:
-
static void _bind_methods();
-friend class Camera;
-friend class VisibilityNotifier;
+ friend class Camera;
+ friend class VisibilityNotifier;
- void _register_camera(Camera* p_camera);
- void _update_camera(Camera* p_camera);
- void _remove_camera(Camera* p_camera);
+ void _register_camera(Camera *p_camera);
+ void _update_camera(Camera *p_camera);
+ void _remove_camera(Camera *p_camera);
- void _register_notifier(VisibilityNotifier* p_notifier,const Rect3& p_rect);
- void _update_notifier(VisibilityNotifier *p_notifier,const Rect3& p_rect);
- void _remove_notifier(VisibilityNotifier* p_notifier);
-friend class Viewport;
+ void _register_notifier(VisibilityNotifier *p_notifier, const Rect3 &p_rect);
+ void _update_notifier(VisibilityNotifier *p_notifier, const Rect3 &p_rect);
+ void _remove_notifier(VisibilityNotifier *p_notifier);
+ friend class Viewport;
void _update(uint64_t p_frame);
-
public:
-
RID get_space() const;
RID get_scenario() const;
- void set_environment(const Ref<Environment>& p_environment);
+ void set_environment(const Ref<Environment> &p_environment);
Ref<Environment> get_environment() const;
PhysicsDirectSpaceState *get_direct_space_state();
World();
~World();
-
};
#endif // WORLD_H