patch

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonNeedPrefabGUID = "NEED_PREFAB_GUID"
	AppendOpAppend       = "append"
)
View Source
const FileSchemaVersion = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type AppendIntent

type AppendIntent struct {
	Op       string `json:"op"`
	ClassID  int    `json:"class_id"`
	FileID   int64  `json:"file_id"`
	TypeName string `json:"type_name"`
}

type File

type File struct {
	SchemaVersion int `json:"schema_version"`
	core.Result
	PatchPlan PlacePrefabPlan `json:"patch_plan"`
}

func LoadFile

func LoadFile(path string) (File, error)

type PlacePrefabPlan

type PlacePrefabPlan struct {
	Status          Status         `json:"status"`
	Reason          string         `json:"reason,omitempty"`
	PrefabPath      string         `json:"prefab_path"`
	PrefabGUID      string         `json:"prefab_guid,omitempty"`
	Position        bounds.Vec3    `json:"position"`
	OverlapIDs      []int64        `json:"overlap_ids"`
	ReservedFileIDs []int64        `json:"reserved_file_ids"`
	Appends         []AppendIntent `json:"appends"`
}

func PlanPlacePrefab

func PlanPlacePrefab(req PlacePrefabRequest) (PlacePrefabPlan, error)

type PlacePrefabRequest

type PlacePrefabRequest struct {
	SceneBlocks []parser.Block
	Manifest    bounds.Manifest
	PrefabPath  string
	PrefabRef   PrefabReference
	Position    bounds.Vec3
}

type PrefabReference

type PrefabReference struct {
	GUID string `json:"guid"`
}

type Status

type Status string
const (
	StatusOK      Status = "OK"
	StatusWarn    Status = "WARN"
	StatusUnknown Status = "UNKNOWN"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL