Skip to main content

LightObjectServer

class ThaumielMapEditor.API.Blocks.ServerObjects

Overview​

Properties​

NameTypeAccessDescription
BaseLightSourceToygetNo description
ColorColorget setNo description
Intensityfloatget setNo description
ObjectTypeObjectTypeget setGets or sets the type of the object represented by this instance.
Rangefloatget setNo description
ShadowsLightShadowsget setNo description
ShadowStrengthfloatget setNo description
SpotAnglefloatget setNo description
TypeLightTypeget setNo description

Methods​

SignatureReturnsDescription
ParseValues(SerializableObject)voidReads serialized schematic data into this object.
SpawnObject(SchematicData, SerializableObject)voidSpawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server…

Properties​

Base​

Type: LightSourceToy Access: get


Color​

Type: Color Access: get set


Intensity​

Type: float Access: get set


ObjectType​

Type: ObjectType Access: get set

Gets or sets the type of the object represented by this instance.


Range​

Type: float Access: get set


Shadows​

Type: LightShadows Access: get set


ShadowStrength​

Type: float Access: get set


SpotAngle​

Type: float Access: get set


Type​

Type: LightType Access: get set


Methods​

ParseValues​

ParseValues
public void ParseValues(SerializableObject serializable)

Reads serialized schematic data into this object.

Parameters​

NameTypeDescription
serializableSerializableObject

SpawnObject​

SpawnObject
public void SpawnObject(
SchematicData schematic,
SerializableObject serializable
)

Spawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server and adds it to the provided ThaumielMapEditor.API.Data.SchematicData's ThaumielMapEditor.API.Data.SchematicData.SpawnedServerObjects list.

Parameters​

NameTypeDescription
schematicSchematicData
serializableSerializableObject