Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RestoreFromBackup ¶
RestoreFromBackup atomically overwrites path with the contents of backupPath, returning the number of bytes restored. It is the inverse of the .bak written by WriteWithBackup, used to recover from a committed write.
Types ¶
type AssetSetRequest ¶
type AssetSetResult ¶
type AssetSetResult struct {
Field string
OldValue string
NewValue string
TypeHint string
Changed bool
UpdatedData []byte
}
func PlanAssetSet ¶
func PlanAssetSet(input []byte, blocks []parser.Block, req AssetSetRequest) (AssetSetResult, error)
type CommittedWriteError ¶
func (*CommittedWriteError) Error ¶
func (e *CommittedWriteError) Error() string
func (*CommittedWriteError) Unwrap ¶
func (e *CommittedWriteError) Unwrap() error
func (*CommittedWriteError) WriteCommitted ¶
func (e *CommittedWriteError) WriteCommitted() bool
type PrefabSetRequest ¶
type PrefabSetResult ¶
type PrefabSetResult struct {
Field string
OldValue string
NewValue string
TypeHint string
Changed bool
UpdatedData []byte
}
func PlanPrefabSet ¶
func PlanPrefabSet(input []byte, blocks []parser.Block, req PrefabSetRequest) (PrefabSetResult, error)
type SceneApplyPlan ¶
type SceneApplyPlan struct {
Status patch.Status
Operation string
Reason string
AppendOps int
ReservedIDs []int64
Changed bool
Verified bool
BackupPath string
ExpectedObjects int
ActualObjects int
UpdatedData []byte
}
func ApplyScene ¶
func ApplyScene(req SceneApplyRequest, plan SceneApplyPlan) (SceneApplyPlan, error)
func PlanSceneApply ¶
func PlanSceneApply(input []byte, req SceneApplyRequest) (SceneApplyPlan, error)
type SceneApplyRequest ¶
type SceneDiffResult ¶
type SceneDiffResult struct {
Status patch.Status
Operation string
Reason string
AppendOps int
ReservedIDs []int64
OverlapIDs []int64
}
func DescribeScenePatch ¶
func DescribeScenePatch(req SceneApplyRequest) (SceneDiffResult, error)
Click to show internal directories.
Click to hide internal directories.