mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-03 06:45:53 +01:00
Added a property to World2D for the vertex light 2d map.
This commit is contained in:
parent
a58eba6277
commit
cd8f79865e
@ -10,11 +10,6 @@
|
||||
<link>$DOCS_URL/tutorials/physics/ray-casting.md</link>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="get_vertex_lights_2d_map">
|
||||
<return type="RID" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="canvas" type="RID" setter="" getter="get_canvas">
|
||||
@ -29,6 +24,9 @@
|
||||
<member name="space" type="RID" setter="" getter="get_space">
|
||||
The [RID] of this world's physics space resource. Used by the [Physics2DServer] for 2D physics, treating it as both a space and an area.
|
||||
</member>
|
||||
<member name="vertex_lights_2d_map" type="RID" setter="" getter="get_vertex_lights_2d_map">
|
||||
The [RID] of this world's vertex light 2d space resource. Used by the [VertexLights2DServer] for static 2D lights. If the vertex lights 2d module is not enabled this will just return an empty RID.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
</constants>
|
||||
|
@ -371,6 +371,7 @@ void World2D::_bind_methods() {
|
||||
ADD_PROPERTY(PropertyInfo(Variant::RID, "space", PROPERTY_HINT_NONE, "", 0), "", "get_space");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::RID, "navigation_map", PROPERTY_HINT_NONE, "", 0), "", "get_navigation_map");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "direct_space_state", PROPERTY_HINT_RESOURCE_TYPE, "Physics2DDirectSpaceState", 0), "", "get_direct_space_state");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::RID, "vertex_lights_2d_map", PROPERTY_HINT_NONE, "", 0), "", "get_vertex_lights_2d_map");
|
||||
}
|
||||
|
||||
Physics2DDirectSpaceState *World2D::get_direct_space_state() {
|
||||
|
Loading…
Reference in New Issue
Block a user