|
Toast Engine
|


Public Member Functions | |
| VoxelEditorViewModel (WorkspaceViewModel workspace, bool ownsWorkspace, string prefabUid, ulong sourceWorkspace=0, string sourceInstance="") | |
| void | EnsureEngine () |
| void | TakeEngine () |
| void | Undo () |
| void | Redo () |
| async Task< bool > | ConfirmCloseAsync () |
| void | Select (string? uid) |
| void | BeginEdit (string subject) |
| void | CommitEdit () |
| void | SetBounds (string uid,(int X, int Y, int Z) min,(int X, int Y, int Z) max) |
| void | CreateVolume (VoxelTool tool,(int X, int Y, int Z) min,(int X, int Y, int Z) max) |
| void | Extrude (string sourceUid,(int X, int Y, int Z) min,(int X, int Y, int Z) max, bool inward) |
| void | Cut ((double X, double Y, double Z, double W) plane, uint keep) |
| void | PreviewCut ((double X, double Y, double Z, double W)? plane) |
| void | RotateSelection (int axis, int turns) |
| void | Bucket ((int X, int Y, int Z) voxel, int searchAxis, int searchStep) |
| void | Dispose () |
Static Public Attributes | |
| const double | VoxelSize = 0.1 |
| const double | RightAngle = 90.0 |
| const string | DrawBoxScript = "core://voxel_scripts/draw_box.lua" |
Properties | |
| static IReadOnlyList< string > | FillModes = ["Replace", "Empty Only", "Solid Only", "Match"] [get] |
| WorkspaceViewModel | Workspace [get] |
| HierarchyViewModel | Hierarchy [get] |
| InspectorViewModel | Inspector [get] |
| string | PrefabUid [get] |
| ulong | SourceWorkspace [get] |
| string | SourceInstance [get] |
| bool | CanShowOthers [get] |
| string | Title [get] |
| IReadOnlyList< VoxelPieceInfo > | Pieces = [] [get] |
| IReadOnlyList< VoxelProjectionInfo > | Projections = [] [get] |
| string | PaletteUid = "" [get] |
| string? | SelectedUid [get] |
| VoxelPieceInfo? | SelectedPiece [get] |
Events | |
| Action? | LayoutChanged |
| Action? | SelectionChanged |