2019-12-25 14:08:20 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2022-02-08 12:36:37 +01:00
|
|
|
<class name="VoxelSurface" inherits="Resource" version="3.5">
|
2019-12-25 14:08:20 +01:00
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="get_rect" qualifiers="const">
|
2022-02-08 12:36:37 +01:00
|
|
|
<return type="Rect2" />
|
|
|
|
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides" />
|
2019-12-25 14:08:20 +01:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="refresh_rects">
|
2022-02-08 12:36:37 +01:00
|
|
|
<return type="void" />
|
2019-12-25 14:08:20 +01:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_rect">
|
2022-02-08 12:36:37 +01:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides" />
|
|
|
|
<argument index="1" name="rect" type="Rect2" />
|
2019-12-25 14:08:20 +01:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="transform_uv" qualifiers="const">
|
2022-02-08 12:36:37 +01:00
|
|
|
<return type="Vector2" />
|
|
|
|
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides" />
|
|
|
|
<argument index="1" name="uv" type="Vector2" />
|
2019-12-25 14:08:20 +01:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2020-03-22 01:09:29 +01:00
|
|
|
<method name="transform_uv_scaled" qualifiers="const">
|
2022-02-08 12:36:37 +01:00
|
|
|
<return type="Vector2" />
|
|
|
|
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides" />
|
|
|
|
<argument index="1" name="uv" type="Vector2" />
|
|
|
|
<argument index="2" name="p_current_x" type="int" />
|
|
|
|
<argument index="3" name="p_current_y" type="int" />
|
|
|
|
<argument index="4" name="max" type="int" />
|
2020-03-22 01:09:29 +01:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2019-12-25 14:08:20 +01:00
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="id" type="int" setter="set_id" getter="get_id" default="0">
|
|
|
|
</member>
|
2020-04-20 17:37:01 +02:00
|
|
|
<member name="liquid" type="bool" setter="set_liquid" getter="get_liquid" default="false">
|
|
|
|
</member>
|
2020-03-22 01:09:29 +01:00
|
|
|
<member name="mesher_index" type="int" setter="set_mesher_index" getter="get_mesher_index" default="0">
|
|
|
|
</member>
|
2020-04-20 17:37:01 +02:00
|
|
|
<member name="transparent" type="bool" setter="set_transparent" getter="get_transparent" default="false">
|
2019-12-25 14:08:20 +01:00
|
|
|
</member>
|
|
|
|
<member name="voxel_name" type="String" setter="set_name" getter="get_name" default="""">
|
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
<constant name="VOXEL_SIDE_TOP" value="0" enum="VoxelSurfaceSides">
|
|
|
|
</constant>
|
|
|
|
<constant name="VOXEL_SIDE_BOTTOM" value="1" enum="VoxelSurfaceSides">
|
|
|
|
</constant>
|
|
|
|
<constant name="VOXEL_SIDE_SIDE" value="2" enum="VoxelSurfaceSides">
|
|
|
|
</constant>
|
|
|
|
<constant name="VOXEL_SIDES_COUNT" value="3">
|
|
|
|
</constant>
|
|
|
|
</constants>
|
|
|
|
</class>
|