LightObjectServer
ThaumielMapEditor.API.Blocks.ServerObjects
Overviewβ
Propertiesβ
| Name | Type | Access | Description |
|---|---|---|---|
Base | LightSourceToy | get | No description |
Color | Color | get set | No description |
Intensity | float | get set | No description |
ObjectType | ObjectType | get set | Gets or sets the type of the object represented by this instance. |
Range | float | get set | No description |
Shadows | LightShadows | get set | No description |
ShadowStrength | float | get set | No description |
SpotAngle | float | get set | No description |
Type | LightType | get set | No description |
Methodsβ
| Signature | Returns | Description |
|---|---|---|
ParseValues(SerializableObject) | void | Reads serialized schematic data into this object. |
SpawnObject(SchematicData, SerializableObject) | void | Spawns 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β
| Name | Type | Description |
|---|---|---|
serializable | SerializableObject |
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β
| Name | Type | Description |
|---|---|---|
schematic | SchematicData | |
serializable | SerializableObject |