LightObject
ThaumielMapEditor.API.Blocks.ClientSide
Overviewβ
Propertiesβ
| Name | Type | Access | Description |
|---|---|---|---|
AssetId | UInt32 | get set | Gets or sets the asset id of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance. |
Color | Color | get set | Gets or sets the color of the light. |
InnerSpotAngle | float | get set | Gets or sets the inner spot angle of the light. |
Intensity | float | get set | Gets or sets the intensity of the light. |
NetId | UInt32 | get set | Gets or sets the netid of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance. |
ObjectType | ObjectType | get set | Gets or sets the object type of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance. |
Range | float | get set | Gets or sets the range of the light. |
Schematic | SchematicData | get set | Gets or sets the schematic data associated with this light object. |
Shadows | LightShadows | get set | Gets or sets the shadow type used by the light. |
ShadowStrength | float | get set | Gets or sets the strength of the shadows cast by the light. |
Shape | LightShape | get set | Gets or sets the shape of the light. |
SpotAngle | float | get set | Gets or sets the outer spot angle of the light. |
Type | LightType | get set | Gets or sets the type of the light. |
Methodsβ
| Signature | Returns | Description |
|---|---|---|
DeserializeValues(SerializableObject) | void | Deserializes and applies light specific values from a `ThaumielMapEditor.API.Ser⦠|
SpawnForPlayer(Player) | void | Spawns the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instan⦠|
Propertiesβ
AssetIdβ
Type: UInt32βAccess: get set
Gets or sets the asset id of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
Colorβ
Type: ColorβAccess: get set
Gets or sets the color of the light.
InnerSpotAngleβ
Type: floatβAccess: get set
Gets or sets the inner spot angle of the light.
Intensityβ
Type: floatβAccess: get set
Gets or sets the intensity of the light.
NetIdβ
Type: UInt32βAccess: get set
Gets or sets the netid of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
ObjectTypeβ
Type: ObjectTypeβAccess: get set
Gets or sets the object type of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
Rangeβ
Type: floatβAccess: get set
Gets or sets the range of the light.
Schematicβ
Type: SchematicDataβAccess: get set
Gets or sets the schematic data associated with this light object.
Shadowsβ
Type: LightShadowsβAccess: get set
Gets or sets the shadow type used by the light.
ShadowStrengthβ
Type: floatβAccess: get set
Gets or sets the strength of the shadows cast by the light.
Shapeβ
Type: LightShapeβAccess: get set
Gets or sets the shape of the light.
SpotAngleβ
Type: floatβAccess: get set
Gets or sets the outer spot angle of the light.
Typeβ
Type: LightTypeβAccess: get set
Gets or sets the type of the light.
Methodsβ
DeserializeValuesβ
public void DeserializeValues(SerializableObject serializable)
Deserializes and applies light specific values from a ThaumielMapEditor.API.Serialization.SerializableObject.
Parametersβ
| Name | Type | Description |
|---|---|---|
serializable | SerializableObject | The serialized object containing light data. |
SpawnForPlayerβ
public void SpawnForPlayer(Player player)
Spawns the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance for the specified player.
Parametersβ
| Name | Type | Description |
|---|---|---|
player | Player |