mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-21 11:26:53 +01:00
30 lines
1.6 KiB
XML
30 lines
1.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="NavigationGeometryParser2D" inherits="RefCounted" version="4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
|
<brief_description>
|
|
Parser to contribute a node's geometry data for [NavigationPolygon] baking.
|
|
</brief_description>
|
|
<description>
|
|
Parser to contribute a node's geometry data for [NavigationPolygon] baking. If a script extends this class and the function [method _parses_node] is overridden and returns [code]true[/code], the overridden function [method _parse_geometry] gets called and can be used to add custom geometry data for the [NavigationPolygon] baking process.
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="_parse_geometry" qualifiers="virtual const">
|
|
<return type="void" />
|
|
<argument index="0" name="node" type="Node" />
|
|
<argument index="1" name="navigation_polygon" type="NavigationPolygon" />
|
|
<argument index="2" name="source_geometry" type="NavigationMeshSourceGeometryData2D" />
|
|
<description>
|
|
Called when overridden and the [NavigationMeshGenerator] is parsing geometry for [NavigationPolygon] baking. Custom 2D geometry can be added to the [param source_geometry].
|
|
</description>
|
|
</method>
|
|
<method name="_parses_node" qualifiers="virtual const">
|
|
<return type="bool" />
|
|
<argument index="0" name="node" type="Node" />
|
|
<description>
|
|
Called when parsing geometry nodes for [NavigationPolygon] baking. If [code]true[/code] will call [method _parse_geometry] with this node.
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
</class>
|