Added missing classes to config.py. Also extracted classref, and added a proper .gitignore.

This commit is contained in:
Relintai 2020-04-18 02:37:03 +02:00
parent f7aed39c06
commit d0e3f1c759
4 changed files with 393 additions and 0 deletions

6
.gitignore vendored
View File

@ -1,2 +1,8 @@
.import
*.d
*.o
*.meta
*.obj
*.pyc
*.bc
*.os

View File

@ -1,5 +1,14 @@
def get_doc_classes():
return [
"FastNoise",
"FastnoiseNoiseParams",
]
def get_doc_path():
return "doc_classes"
def can_build(env, platform):
return True

331
doc_classes/FastNoise.xml Normal file
View File

@ -0,0 +1,331 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="FastNoise" inherits="Reference" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="get_cellular_distance_2_indices" qualifiers="const">
<return type="PoolIntArray">
</return>
<description>
</description>
</method>
<method name="get_cellular_distance_function" qualifiers="const">
<return type="int" enum="FastNoise.CellularDistanceFunction">
</return>
<description>
</description>
</method>
<method name="get_cellular_jitter" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_cellular_noise_lookup" qualifiers="const">
<return type="FastNoise">
</return>
<description>
</description>
</method>
<method name="get_cellular_return_type" qualifiers="const">
<return type="int" enum="FastNoise.CellularReturnType">
</return>
<description>
</description>
</method>
<method name="get_fractal_gain" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_fractal_lacunarity" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_fractal_octaves" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_fractal_type" qualifiers="const">
<return type="int" enum="FastNoise.FractalType">
</return>
<description>
</description>
</method>
<method name="get_frequency" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_gradient_perturbation_amplitude" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_interpolation" qualifiers="const">
<return type="int" enum="FastNoise.Interpolation">
</return>
<description>
</description>
</method>
<method name="get_noise_2d">
<return type="float">
</return>
<argument index="0" name="x" type="float">
</argument>
<argument index="1" name="y" type="float">
</argument>
<description>
</description>
</method>
<method name="get_noise_2dv">
<return type="float">
</return>
<argument index="0" name="pos" type="Vector2">
</argument>
<description>
</description>
</method>
<method name="get_noise_3d">
<return type="float">
</return>
<argument index="0" name="x" type="float">
</argument>
<argument index="1" name="y" type="float">
</argument>
<argument index="2" name="z" type="float">
</argument>
<description>
</description>
</method>
<method name="get_noise_3dv">
<return type="float">
</return>
<argument index="0" name="pos" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="get_noise_type" qualifiers="const">
<return type="int" enum="FastNoise.Type">
</return>
<description>
</description>
</method>
<method name="get_seed" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_simplex_4d">
<return type="float">
</return>
<argument index="0" name="x" type="float">
</argument>
<argument index="1" name="y" type="float">
</argument>
<argument index="2" name="z" type="float">
</argument>
<argument index="3" name="w" type="float">
</argument>
<description>
</description>
</method>
<method name="get_white_noise_4d">
<return type="float">
</return>
<argument index="0" name="x" type="float">
</argument>
<argument index="1" name="y" type="float">
</argument>
<argument index="2" name="z" type="float">
</argument>
<argument index="3" name="w" type="float">
</argument>
<description>
</description>
</method>
<method name="set_cellular_distance_2_indices">
<return type="void">
</return>
<argument index="0" name="i0" type="int">
</argument>
<argument index="1" name="i1" type="int">
</argument>
<description>
</description>
</method>
<method name="set_cellular_distance_function">
<return type="void">
</return>
<argument index="0" name="func" type="int" enum="FastNoise.CellularDistanceFunction">
</argument>
<description>
</description>
</method>
<method name="set_cellular_jitter">
<return type="void">
</return>
<argument index="0" name="jitter" type="float">
</argument>
<description>
</description>
</method>
<method name="set_cellular_noise_lookup">
<return type="void">
</return>
<argument index="0" name="other_noise" type="FastNoise">
</argument>
<description>
</description>
</method>
<method name="set_cellular_return_type">
<return type="void">
</return>
<argument index="0" name="ret" type="int" enum="FastNoise.CellularReturnType">
</argument>
<description>
</description>
</method>
<method name="set_fractal_gain">
<return type="void">
</return>
<argument index="0" name="gain" type="float">
</argument>
<description>
</description>
</method>
<method name="set_fractal_lacunarity">
<return type="void">
</return>
<argument index="0" name="lacunarity" type="float">
</argument>
<description>
</description>
</method>
<method name="set_fractal_octaves">
<return type="void">
</return>
<argument index="0" name="octave_count" type="int">
</argument>
<description>
</description>
</method>
<method name="set_fractal_type">
<return type="void">
</return>
<argument index="0" name="type" type="int" enum="FastNoise.FractalType">
</argument>
<description>
</description>
</method>
<method name="set_frequency">
<return type="void">
</return>
<argument index="0" name="freq" type="float">
</argument>
<description>
</description>
</method>
<method name="set_gradient_perturbation_amplitude">
<return type="void">
</return>
<argument index="0" name="amp" type="float">
</argument>
<description>
</description>
</method>
<method name="set_interpolation">
<return type="void">
</return>
<argument index="0" name="interp" type="int" enum="FastNoise.Interpolation">
</argument>
<description>
</description>
</method>
<method name="set_noise_type">
<return type="void">
</return>
<argument index="0" name="type" type="int" enum="FastNoise.Type">
</argument>
<description>
</description>
</method>
<method name="set_seed">
<return type="void">
</return>
<argument index="0" name="seed" type="int">
</argument>
<description>
</description>
</method>
</methods>
<constants>
<constant name="TYPE_VALUE" value="0" enum="Type">
</constant>
<constant name="TYPE_VALUE_FRACTAL" value="1" enum="Type">
</constant>
<constant name="TYPE_PERLIN" value="2" enum="Type">
</constant>
<constant name="TYPE_PERLIN_FRACTAL" value="3" enum="Type">
</constant>
<constant name="TYPE_SIMPLEX" value="4" enum="Type">
</constant>
<constant name="TYPE_SIMPLEX_FRACTAL" value="5" enum="Type">
</constant>
<constant name="TYPE_CELLULAR" value="6" enum="Type">
</constant>
<constant name="TYPE_WHITE_NOISE" value="7" enum="Type">
</constant>
<constant name="TYPE_CUBIC" value="8" enum="Type">
</constant>
<constant name="TYPE_CUBIC_FRACTAL" value="9" enum="Type">
</constant>
<constant name="INTERP_LINEAR" value="0" enum="Interpolation">
</constant>
<constant name="INTERP_QUINTIC" value="2" enum="Interpolation">
</constant>
<constant name="INTERP_HERMITE" value="1" enum="Interpolation">
</constant>
<constant name="FRACTAL_FBM" value="0" enum="FractalType">
</constant>
<constant name="FRACTAL_BILLOW" value="1" enum="FractalType">
</constant>
<constant name="FRACTAL_RIGID_MULTI" value="2" enum="FractalType">
</constant>
<constant name="DISTANCE_EUCLIDEAN" value="0" enum="CellularDistanceFunction">
</constant>
<constant name="DISTANCE_MANHATTAN" value="1" enum="CellularDistanceFunction">
</constant>
<constant name="DISTANCE_NATURAL" value="2" enum="CellularDistanceFunction">
</constant>
<constant name="RETURN_CELL_VALUE" value="0" enum="CellularReturnType">
</constant>
<constant name="RETURN_NOISE_LOOKUP" value="1" enum="CellularReturnType">
</constant>
<constant name="RETURN_DISTANCE" value="2" enum="CellularReturnType">
</constant>
<constant name="RETURN_DISTANCE_2" value="3" enum="CellularReturnType">
</constant>
<constant name="RETURN_DISTANCE_2_ADD" value="4" enum="CellularReturnType">
</constant>
<constant name="RETURN_DISTANCE_2_SUB" value="5" enum="CellularReturnType">
</constant>
<constant name="RETURN_DISTANCE_2_MUL" value="6" enum="CellularReturnType">
</constant>
<constant name="RETURN_DISTANCE_2_DIV" value="7" enum="CellularReturnType">
</constant>
</constants>
</class>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="FastnoiseNoiseParams" inherits="Resource" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="setup_noise">
<return type="void">
</return>
<argument index="0" name="noise" type="FastNoise">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="cellular_jitter" type="float" setter="set_cellular_jitter" getter="get_cellular_jitter" default="0.45">
</member>
<member name="cellular_return_type" type="int" setter="set_cellular_return_type" getter="get_cellular_return_type" enum="FastNoise.CellularReturnType" default="0">
</member>
<member name="fractal_gain" type="float" setter="set_fractal_gain" getter="get_fractal_gain" default="0.5">
</member>
<member name="fractal_lacunarity" type="float" setter="set_fractal_lacunarity" getter="get_fractal_lacunarity" default="2.0">
</member>
<member name="fractal_octaves" type="int" setter="set_fractal_octaves" getter="get_fractal_octaves" default="3">
</member>
<member name="fractal_type" type="int" setter="set_fractal_type" getter="get_fractal_type" enum="FastNoise.FractalType" default="0">
</member>
<member name="frequency" type="float" setter="set_frequency" getter="get_frequency" default="0.01">
</member>
<member name="gradient_perturbation_amplitude" type="float" setter="set_gradient_perturbation_amplitude" getter="get_gradient_perturbation_amplitude" default="1.0">
</member>
<member name="interpolation" type="int" setter="set_interpolation" getter="get_interpolation" enum="FastNoise.Interpolation" default="2">
</member>
<member name="noise_type" type="int" setter="set_noise_type" getter="get_noise_type" enum="FastNoise.Type" default="4">
</member>
<member name="seed" type="int" setter="set_seed" getter="get_seed" default="1337">
</member>
<member name="set_cellular_distance_function" type="int" setter="set_cellular_distance_function" getter="get_cellular_distance_function" enum="FastNoise.CellularDistanceFunction" default="0">
</member>
</members>
<constants>
</constants>
</class>