Chunks
Moddable voxel sandbox for room-scale VR.
|
Public Member Functions | |
Sprite () | |
Sprite (Texture tex) | |
Sprite (Texture tex, Bounds slice) | |
Public Member Functions inherited from Chunks.Plugins.PluginResource | |
override string | ToString () |
Returns the fully qualified name of this resource. More... | |
Properties | |
Texture | Texture [get, set] |
Bounds | Slice [get] |
Properties inherited from Chunks.Plugins.PluginResource | |
Plugin | Plugin [get] |
Plugin this resource was loaded from. More... | |
ResourceName | Name [get] |
Name of this resource. More... | |
Additional Inherited Members | |
Public Attributes inherited from Chunks.Plugins.PluginResource | |
bool | IsValid => Plugin == null || Plugin.IsLoaded |
Protected Member Functions inherited from Chunks.Plugins.PluginResource | |
PluginResource () | |
void | AssertIsValid () |
virtual void | OnInitialize () |
virtual void | OnReadDefinition (JToken token, string directory) |
When overridden in an inheriting class, handles reading information about the resource from a json token. Base implementation populates any properties decorated with a JsonPropertyAttribute. More... | |
ResourceName | GetResourceName (JToken token) |
Converts a json token to a resource name, associating it with the current namespace. Only valid from within OnReadDefinition. More... | |
ResourceName | GetResourceName (JToken token, ResourceName @default) |
Converts a json token to a resource name, associating it with the current namespace. Only valid from within OnReadDefinition. If the token is null, default is used. More... | |
Chunks.Graphics.Sprite.Sprite | ( | ) |
Chunks.Graphics.Sprite.Sprite | ( | Texture | tex | ) |
|
get |
|
getset |