Skip to main content

LightObject

class ThaumielMapEditor.API.Blocks.ClientSide

Overview​

Properties​

NameTypeAccessDescription
AssetIdUInt32get setGets or sets the asset id of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
ColorColorget setGets or sets the color of the light.
InnerSpotAnglefloatget setGets or sets the inner spot angle of the light.
Intensityfloatget setGets or sets the intensity of the light.
NetIdUInt32get setGets or sets the netid of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
ObjectTypeObjectTypeget setGets or sets the object type of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
Rangefloatget setGets or sets the range of the light.
SchematicSchematicDataget setGets or sets the schematic data associated with this light object.
ShadowsLightShadowsget setGets or sets the shadow type used by the light.
ShadowStrengthfloatget setGets or sets the strength of the shadows cast by the light.
ShapeLightShapeget setGets or sets the shape of the light.
SpotAnglefloatget setGets or sets the outer spot angle of the light.
TypeLightTypeget setGets or sets the type of the light.

Methods​

SignatureReturnsDescription
DeserializeValues(SerializableObject)voidDeserializes and applies light specific values from a `ThaumielMapEditor.API.Ser…
SpawnForPlayer(Player)voidSpawns 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​

DeserializeValues
public void DeserializeValues(SerializableObject serializable)

Deserializes and applies light specific values from a ThaumielMapEditor.API.Serialization.SerializableObject.

Parameters​

NameTypeDescription
serializableSerializableObjectThe serialized object containing light data.

SpawnForPlayer​

SpawnForPlayer
public void SpawnForPlayer(Player player)

Spawns the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance for the specified player.

Parameters​

NameTypeDescription
playerPlayer