|
Chunks
Moddable voxel sandbox for room-scale VR.
|
Base class for types that define selectable wand controller functionality. More...
Public Member Functions | |
| bool | Activate () |
| Switches the wand's currently active tool to this one. More... | |
Static Public Member Functions | |
| static IEnumerable< Type > | GetAllTypes () |
| Gets all types loaded from plugins that extend WandTool. More... | |
| static Type | GetType (string fullName) |
| Attempts to find a wand tool type with the given full type name. If one does not exist null is returned. More... | |
Public Attributes | |
| virtual Color | Color => Color.White |
| Color tint to apply to the wand while this tool is active. More... | |
Protected Member Functions | |
| void | GetRegionBounds (IntVector a, IntVector b, out IntVector min, out IntVector max) |
| Helper method to find the smallest axis aligned bounding box that contains two positions. More... | |
| virtual void | OnInitialize () |
| Called when the wand tool is first attached to a wand. More... | |
| virtual void | OnStartInteractingWithHoldable (Holdable holdable) |
| virtual void | OnStopInteractingWithHoldable () |
| virtual void | OnStartInteractingWithMenu (MenuPanel panel) |
| virtual void | OnStopInteractingWithMenu () |
| virtual void | OnSoftDisable () |
| virtual void | OnSoftEnable () |
| MenuPanel | ShowMenuPanel< TControl > (bool hideWhenDeactivated) |
| MenuPanel | ShowMenuPanel (ResourceName controlName, bool hideWhenDeactivated) |
| virtual void | OnActivate () |
| Called each time this tool is switched to. More... | |
| virtual void | OnDeactivate () |
| Called each time a wand tool is switched to while this one is active. More... | |
| virtual void | OnUpdate () |
| Called once every world update while this tool is active. More... | |
| object | StartCoroutine (IEnumerator routine) |
| Starts execution of a coroutine. More... | |
| object | Wait (float timeSeconds) |
| Suspends coroutine operation for the given time when yielded. More... | |
Properties | |
| bool | IsActive [get] |
| If true, this wand tool is currently selected. More... | |
| virtual Graphics.Texture | Icon [get] |
| IWorld | World [get] |
| The currently loaded world. More... | |
| Wand | Wand [get] |
| The wand associated with this tool. More... | |
| virtual bool | CanDeactivate [get] |
| If false, attempts to switch to another wand tool while this one is active will silently fail. More... | |
Base class for types that define selectable wand controller functionality.
| bool Chunks.Interface.WandTool.Activate | ( | ) |
Switches the wand's currently active tool to this one.
|
static |
Gets all types loaded from plugins that extend WandTool.
|
protected |
Helper method to find the smallest axis aligned bounding box that contains two positions.
| a | First position |
| b | Second position |
| min | Minimum bounds of the bounding box containing both positions |
| max | Maximum bounds of hte bounding box containing both positions |
|
static |
Attempts to find a wand tool type with the given full type name. If one does not exist null is returned.
| fullName | Full name of the wand tool type to find |
|
protectedvirtual |
Called each time this tool is switched to.
|
protectedvirtual |
Called each time a wand tool is switched to while this one is active.
|
protectedvirtual |
Called when the wand tool is first attached to a wand.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Called once every world update while this tool is active.
|
protected |
|
protected |
| TControl | : | Control | |
| TControl | : | new() |
|
protected |
Starts execution of a coroutine.
| routine | Enumerator returned by a coroutine method |
|
protected |
Suspends coroutine operation for the given time when yielded.
| timeSeconds | Time to suspend operation for in seconds |
| virtual Color Chunks.Interface.WandTool.Color => Color.White |
Color tint to apply to the wand while this tool is active.
|
get |
If false, attempts to switch to another wand tool while this one is active will silently fail.
|
get |
|
get |
If true, this wand tool is currently selected.
|
get |
The wand associated with this tool.
|
getprotected |
The currently loaded world.
1.8.10