godot_voxel/config.py

88 lines
2.0 KiB
Python
Raw Normal View History

2018-09-02 18:48:08 +01:00
def can_build(env, platform):
2022-03-20 17:20:31 +00:00
return True
def configure(env):
from SCons.Script import BoolVariable, Variables, Help
env_vars = Variables()
env_vars.Add(BoolVariable("voxel_tests",
"Build with tests for the voxel module, which will run on startup of the engine", False))
env_vars.Add(BoolVariable("voxel_fast_noise_2", "Build FastNoise2 support", True))
env_vars.Update(env)
Help(env_vars.GenerateHelpText(env))
def get_icons_path():
2022-03-20 17:20:31 +00:00
return "editor/icons"
def get_doc_classes():
2022-03-20 17:20:31 +00:00
return [
"VoxelServer",
2022-04-14 20:24:42 +01:00
"ZN_ThreadedTask",
2020-09-06 19:36:53 +01:00
2022-03-20 17:20:31 +00:00
"Voxel",
"VoxelLibrary",
"VoxelColorPalette",
"VoxelInstanceLibrary",
"VoxelInstanceLibraryItem",
"VoxelInstanceLibraryItemBase",
"VoxelInstanceLibrarySceneItem",
"VoxelInstanceGenerator",
2022-03-20 17:20:31 +00:00
"VoxelBuffer",
2022-03-20 17:20:31 +00:00
"VoxelNode",
"VoxelTerrain",
"VoxelLodTerrain",
"VoxelViewer",
"VoxelInstancer",
2022-03-20 17:20:31 +00:00
"VoxelStream",
"VoxelStreamFile",
"VoxelStreamBlockFiles",
"VoxelStreamRegionFiles",
"VoxelStreamSQLite",
"VoxelStreamScript",
2022-03-20 17:20:31 +00:00
"VoxelGenerator",
"VoxelGeneratorFlat",
"VoxelGeneratorWaves",
"VoxelGeneratorHeightmap",
"VoxelGeneratorImage",
"VoxelGeneratorNoise2D",
"VoxelGeneratorNoise",
"VoxelGeneratorGraph",
"VoxelGeneratorScript",
2022-03-20 17:20:31 +00:00
"VoxelBoxMover",
"VoxelRaycastResult",
"VoxelTool",
"VoxelToolTerrain",
"VoxelToolLodTerrain",
"VoxelToolBuffer",
"VoxelBlockSerializer",
"VoxelVoxLoader",
2022-03-20 19:04:38 +00:00
"VoxelDataBlockEnterInfo",
"VoxelMeshSDF",
2022-03-20 19:04:38 +00:00
2022-04-14 20:24:42 +01:00
"ZN_FastNoiseLite",
"ZN_FastNoiseLiteGradient",
"FastNoise2",
2022-03-20 17:20:31 +00:00
"VoxelMesher",
"VoxelMesherBlocky",
"VoxelMesherTransvoxel",
"VoxelMesherDMC",
"VoxelMesherCubes"
]
def get_doc_path():
2022-03-20 17:20:31 +00:00
return "doc/classes"