SchematicData
ThaumielMapEditor.API.Data
Overviewβ
Propertiesβ
| Name | Type | Access | Description |
|---|---|---|---|
AnimationController | AnimationController | get | No description |
EulerAngles | Vector3 | get set | Gets or sets the global euler angles of this ThaumielMapEditor.API.Data.SchematicData instance. |
Executor | BlockExecutor | get | The ThaumielMapEditor.API.Helpers.BlockExecutor of this schematic. |
FileName | string | get | Gets or sets the file name. |
GameObject | GameObject | get | Gets the ThaumielMapEditor.API.Data.SchematicData.GameObject of the base ThaumielMapEditor.API.Blocks.ClientSide.PrimitiveObject of this Schematic |
Id | UInt32 | get set | Gets or sets the id |
LODZones | List<LODData> | get | A list of the spawned ThaumielMapEditor.API.Data.LODData instances |
Position | Vector3 | get set | Gets or sets the position of this ThaumielMapEditor.API.Data.SchematicData instance. |
Primitive | PrimitiveObjectToy | get | Gets the base LabApi.Features.Wrappers.PrimitiveObjectToy that all client primtives will be parented to. |
Room | Room | get | Gets the room this ThaumielMapEditor.API.Data.SchematicData instance was spawned in. |
RootObjectId | int | get | Gets the root object id. |
Rotation | Quaternion | get set | Gets or sets the rotation of this ThaumielMapEditor.API.Data.SchematicData instance. |
Scale | Vector3 | get set | Gets or sets the scale of this ThaumielMapEditor.API.Data.SchematicData instance. |
ServerNetworkIdentities | IReadOnlyList<NetworkIdentity> | get | Gets all of the ThaumielMapEditor.API.Data.SchematicData.SpawnedServerObjects that have a Mirror.NetworkIdentity as a component. |
Fieldsβ
| Name | Type | Description |
|---|---|---|
ServerSideTransforms | Dictionary<int, Transform> | No description |
SpawnedClientObjects | List<ClientSideObjectBase> | A list of all spawned `ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectB⦠|
SpawnedServerObjects | List<ServerObject> | A list of all spawned ThaumielMapEditor.API.Blocks.ServerObject instances. |
Methodsβ
| Signature | Returns | Description |
|---|---|---|
Destroy() | void | Destroys this ThaumielMapEditor.API.Data.SchematicData instance. |
GetClientObject() | IEnumerable<T> | Retrieves all spawned `ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectB⦠|
GetServerObject() | IEnumerable<T> | Retrieves all spawned ThaumielMapEditor.API.Blocks.ServerObjects of the specif⦠|
SyncWithPlayer(Player) | void | Syncs the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase of this⦠|
Propertiesβ
AnimationControllerβ
Type: AnimationControllerβAccess: get
EulerAnglesβ
Type: Vector3βAccess: get set
Gets or sets the global euler angles of this ThaumielMapEditor.API.Data.SchematicData instance.
Executorβ
Type: BlockExecutorβAccess: get
The ThaumielMapEditor.API.Helpers.BlockExecutor of this schematic.
FileNameβ
Type: stringβAccess: get
Gets or sets the file name.
GameObjectβ
Type: GameObjectβAccess: get
Gets the ThaumielMapEditor.API.Data.SchematicData.GameObject of the base ThaumielMapEditor.API.Blocks.ClientSide.PrimitiveObject of this Schematic
Idβ
Type: UInt32βAccess: get set
Gets or sets the id
LODZonesβ
Type: List<LODData>βAccess: get
A list of the spawned ThaumielMapEditor.API.Data.LODData instances
Positionβ
Type: Vector3βAccess: get set
Gets or sets the position of this ThaumielMapEditor.API.Data.SchematicData instance.
Primitiveβ
Type: PrimitiveObjectToyβAccess: get
Gets the base LabApi.Features.Wrappers.PrimitiveObjectToy that all client primtives will be parented to.
Roomβ
Type: RoomβAccess: get
Gets the room this ThaumielMapEditor.API.Data.SchematicData instance was spawned in.
RootObjectIdβ
Type: intβAccess: get
Gets the root object id.
Rotationβ
Type: QuaternionβAccess: get set
Gets or sets the rotation of this ThaumielMapEditor.API.Data.SchematicData instance.
Scaleβ
Type: Vector3βAccess: get set
Gets or sets the scale of this ThaumielMapEditor.API.Data.SchematicData instance.
ServerNetworkIdentitiesβ
Type: IReadOnlyList<NetworkIdentity>βAccess: get
Gets all of the ThaumielMapEditor.API.Data.SchematicData.SpawnedServerObjects that have a Mirror.NetworkIdentity as a component.
Fieldsβ
ServerSideTransformsβ
Type: Dictionary<int, Transform>
SpawnedClientObjectsβ
Type: List<ClientSideObjectBase>
A list of all spawned ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instances.
SpawnedServerObjectsβ
Type: List<ServerObject>
A list of all spawned ThaumielMapEditor.API.Blocks.ServerObject instances.
Methodsβ
Destroyβ
public void Destroy()
Destroys this ThaumielMapEditor.API.Data.SchematicData instance.
GetClientObjectβ
public IEnumerable<T> GetClientObject()
Retrieves all spawned ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBases of the specified type.
Returnsβ
IEnumerable<T> β An System.Collections.Generic.IEnumerable1containing allThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBases that match type T`.
GetServerObjectβ
public IEnumerable<T> GetServerObject()
Retrieves all spawned ThaumielMapEditor.API.Blocks.ServerObjects of the specified type.
Returnsβ
IEnumerable<T> β An System.Collections.Generic.IEnumerable1containing allThaumielMapEditor.API.Blocks.ServerObjects that match type T`.
SyncWithPlayerβ
public void SyncWithPlayer(Player player)
Syncs the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase of this ThaumielMapEditor.API.Data.SchematicData with the specified LabApi.Features.Wrappers.Player.
Parametersβ
| Name | Type | Description |
|---|---|---|
player | Player | The LabApi.Features.Wrappers.Player to sync with. |