P08-03: 配置の通常操作受入
This commit is contained in:
@@ -202,6 +202,12 @@ func get_build_preview_report(cell: Variant = null) -> Dictionary:
|
||||
var target: Variant = _hovered_cell if cell == null else cell
|
||||
if build_definition == null or not target is Vector3i:
|
||||
return INVALID_PREVIEW.duplicate(true)
|
||||
if _runtime != null and _runtime.has_method(&"preview_build_facility"):
|
||||
var result: Dictionary = _runtime.call(&"preview_build_facility", build_definition.id, Vector3i(target.x, target.y, layer_mode), build_rotation)
|
||||
result[&"connection"] = _build_connection_report(
|
||||
_cells_from_serialized(result.get(&"cells", [])),
|
||||
Vector3i(target.x, target.y, layer_mode))
|
||||
return result
|
||||
var construction: Variant = _service(&"construction_service")
|
||||
if construction != null and construction.has_method(&"validate_placement"):
|
||||
var report: Variant = construction.call(
|
||||
|
||||
Reference in New Issue
Block a user