Skip to main content

SchematicData

class ThaumielMapEditor.API.Data

Overview​

Properties​

NameTypeAccessDescription
AnimationControllerAnimationControllergetNo description
EulerAnglesVector3get setGets or sets the global euler angles of this ThaumielMapEditor.API.Data.SchematicData instance.
ExecutorBlockExecutorgetThe ThaumielMapEditor.API.Helpers.BlockExecutor of this schematic.
FileNamestringgetGets or sets the file name.
GameObjectGameObjectgetGets the ThaumielMapEditor.API.Data.SchematicData.GameObject of the base ThaumielMapEditor.API.Blocks.ClientSide.PrimitiveObject of this Schematic
IdUInt32get setGets or sets the id
LODZonesList<LODData>getA list of the spawned ThaumielMapEditor.API.Data.LODData instances
PositionVector3get setGets or sets the position of this ThaumielMapEditor.API.Data.SchematicData instance.
PrimitivePrimitiveObjectToygetGets the base LabApi.Features.Wrappers.PrimitiveObjectToy that all client primtives will be parented to.
RoomRoomgetGets the room this ThaumielMapEditor.API.Data.SchematicData instance was spawned in.
RootObjectIdintgetGets the root object id.
RotationQuaternionget setGets or sets the rotation of this ThaumielMapEditor.API.Data.SchematicData instance.
ScaleVector3get setGets or sets the scale of this ThaumielMapEditor.API.Data.SchematicData instance.
ServerNetworkIdentitiesIReadOnlyList<NetworkIdentity>getGets all of the ThaumielMapEditor.API.Data.SchematicData.SpawnedServerObjects that have a Mirror.NetworkIdentity as a component.

Fields​

NameTypeDescription
ServerSideTransformsDictionary<int, Transform>No description
SpawnedClientObjectsList<ClientSideObjectBase>A list of all spawned `ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectB…
SpawnedServerObjectsList<ServerObject>A list of all spawned ThaumielMapEditor.API.Blocks.ServerObject instances.

Methods​

SignatureReturnsDescription
Destroy()voidDestroys 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)voidSyncs 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​

Destroy
public void Destroy()

Destroys this ThaumielMapEditor.API.Data.SchematicData instance.


GetClientObject​

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​

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​

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​

NameTypeDescription
playerPlayerThe LabApi.Features.Wrappers.Player to sync with.