Add Ground Zero biome resources
This commit is contained in:
@@ -98,6 +98,87 @@ DEMO_ACTORS = [
|
||||
]
|
||||
|
||||
|
||||
BIOME_RESOURCE_ACTORS = [
|
||||
{
|
||||
"label": "AGR_GZ_Wood_CoastalScrub_01",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_WoodResourceNode",
|
||||
"location_xy": unreal.Vector(-28600.0, 7400.0, 0.0),
|
||||
"z_offset": 70.0,
|
||||
"rotation": unreal.Rotator(0.0, 18.0, 0.0),
|
||||
},
|
||||
{
|
||||
"label": "AGR_GZ_Wood_CoastalScrub_02",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_WoodResourceNode",
|
||||
"location_xy": unreal.Vector(-5400.0, 21400.0, 0.0),
|
||||
"z_offset": 70.0,
|
||||
"rotation": unreal.Rotator(0.0, -42.0, 0.0),
|
||||
},
|
||||
{
|
||||
"label": "AGR_GZ_Wood_Hillside_03",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_WoodResourceNode",
|
||||
"location_xy": unreal.Vector(18400.0, 32200.0, 0.0),
|
||||
"z_offset": 70.0,
|
||||
"rotation": unreal.Rotator(0.0, 86.0, 0.0),
|
||||
},
|
||||
{
|
||||
"label": "AGR_GZ_Fiber_Grassland_01",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_FiberResourceNode",
|
||||
"location_xy": unreal.Vector(-33400.0, -16200.0, 0.0),
|
||||
"z_offset": 65.0,
|
||||
"rotation": unreal.Rotator(0.0, 6.0, 0.0),
|
||||
},
|
||||
{
|
||||
"label": "AGR_GZ_Fiber_Grassland_02",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_FiberResourceNode",
|
||||
"location_xy": unreal.Vector(8200.0, -18200.0, 0.0),
|
||||
"z_offset": 65.0,
|
||||
"rotation": unreal.Rotator(0.0, -28.0, 0.0),
|
||||
},
|
||||
{
|
||||
"label": "AGR_GZ_Fiber_Scrub_03",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_FiberResourceNode",
|
||||
"location_xy": unreal.Vector(29200.0, -4200.0, 0.0),
|
||||
"z_offset": 65.0,
|
||||
"rotation": unreal.Rotator(0.0, 54.0, 0.0),
|
||||
},
|
||||
{
|
||||
"label": "AGR_GZ_Fiber_DrainageCandidate_04",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_FiberResourceNode",
|
||||
"location_xy": unreal.Vector(-6200.0, 9200.0, 0.0),
|
||||
"z_offset": 65.0,
|
||||
"rotation": unreal.Rotator(0.0, 114.0, 0.0),
|
||||
},
|
||||
{
|
||||
"label": "AGR_GZ_Stone_Slope_01",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_StoneResourceNode",
|
||||
"location_xy": unreal.Vector(22600.0, 17600.0, 0.0),
|
||||
"z_offset": 45.0,
|
||||
"rotation": unreal.Rotator(0.0, 12.0, 0.0),
|
||||
},
|
||||
{
|
||||
"label": "AGR_GZ_Stone_Slope_02",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_StoneResourceNode",
|
||||
"location_xy": unreal.Vector(37600.0, 28600.0, 0.0),
|
||||
"z_offset": 45.0,
|
||||
"rotation": unreal.Rotator(0.0, -36.0, 0.0),
|
||||
},
|
||||
{
|
||||
"label": "AGR_GZ_Stone_ExposedTerrain_03",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_StoneResourceNode",
|
||||
"location_xy": unreal.Vector(11800.0, 38200.0, 0.0),
|
||||
"z_offset": 45.0,
|
||||
"rotation": unreal.Rotator(0.0, 71.0, 0.0),
|
||||
},
|
||||
{
|
||||
"label": "AGR_GZ_Stone_ValleyEdge_04",
|
||||
"class_path": "/Game/Agrarian/Blueprints/Resources/BP_StoneResourceNode",
|
||||
"location_xy": unreal.Vector(-24800.0, 28600.0, 0.0),
|
||||
"z_offset": 45.0,
|
||||
"rotation": unreal.Rotator(0.0, 133.0, 0.0),
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
FOLIAGE_ZONES = {
|
||||
"trees": {
|
||||
"count": 42,
|
||||
@@ -313,11 +394,14 @@ def main():
|
||||
raise RuntimeError(f"Could not load map: {MAP_PATH}")
|
||||
|
||||
labels = {spec["label"] for spec in DEMO_ACTORS}
|
||||
labels.update(spec["label"] for spec in BIOME_RESOURCE_ACTORS)
|
||||
labels.add(FOLIAGE_LABEL)
|
||||
remove_existing_demo_actors(labels)
|
||||
|
||||
height_values = load_heightmap()
|
||||
spawn_foliage_actor(height_values)
|
||||
for spec in BIOME_RESOURCE_ACTORS:
|
||||
spawn_demo_actor(spec, height_values)
|
||||
for spec in DEMO_ACTORS:
|
||||
spawn_demo_actor(spec, height_values)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user