Skip to main content

ClientSideObjectBase

abstract class ThaumielMapEditor.API.Blocks.ClientSide

Overview​

Properties​

NameTypeAccessDescription
AssetIdUInt32get setGets or sets the asset id of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
IsStaticboolget setGets or sets
MovementSmoothingbyteget setGets or sets the sync interval of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase.
NetIdUInt32get setGets or sets the netid of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
ObjectIdintgetGets the object id from the ThaumielMapEditor.API.Serialization.SerializableObject this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance was generated from.
ObjectTypeObjectTypeget setGets or sets the object type of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
ParentGameObjectgetGets or sets the UnityEngine.GameObject the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase is parented to on the client.
ParentIdintgetGets the parent id from the ThaumielMapEditor.API.Serialization.SerializableObject this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance was generated from.
ParentNetIdUInt32getGets or sets the netId of the UnityEngine.GameObject this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase is parented to.
PositionVector3get setGets or sets the position of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
RotationQuaternionget setGets or sets the rotation of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
ScaleVector3get setGets or sets the scale of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
ServerCollidersCollider[]get setGets or sets the colliders of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
SpawnedboolgetGets a value indicating whether this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase has been spawned for any players.
SpawnedPlayersHashSet<Player>getAll the LabApi.Features.Wrappers.Players that this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance has been spawned for.
WorldPositionVector3get setGets or sets the world position of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.
WorldRotationQuaternionget setGets or sets the world rotation of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.

Methods​

SignatureReturnsDescription
DespawnForAllPlayers()UInt32Destroys this object for all ready players.
DespawnForPlayer(Player)voidDestroys this object for the specified player.
DestroyForAllPlayers()voidDestroys this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase ins…
DestroyForPlayer(Player)voidDestroys this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase ins…
FlushSync()voidSyncs all the pending bits in `ThaumielMapEditor.API.Blocks.ClientSide.ClientSid…
GetValue(SerializableObject, string)TGets a value from a ThaumielMapEditor.API.Serialization.SerializableObject by…
HideForPlayer(Player)voidHides this object for the specified player.
SetParent(Player, UInt32)voidSets the parent of the
ShowForPlayer(Player)voidShows this object for the specified player.
SpawnForPlayer(Player)voidSpawns the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instan…
SpawnForPlayer(GameObject, Player)boolSpawns a UnityEngine.GameObject to the specified `LabApi.Features.Wrappers.Pla…
SyncToPlayers(UInt64, Action<NetworkWriter>)voidSyncs the specified bits to all LabApi.Features.Wrappers.Players this `Thaumie…

Properties​

AssetId​

Type: UInt32 Access: get set

Gets or sets the asset id of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.


IsStatic​

Type: bool Access: get set

Gets or sets


MovementSmoothing​

Type: byte Access: get set

Gets or sets the sync interval of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase.


NetId​

Type: UInt32 Access: get set

Gets or sets the netid of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.


ObjectId​

Type: int Access: get

Gets the object id from the ThaumielMapEditor.API.Serialization.SerializableObject this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance was generated from.


ObjectType​

Type: ObjectType Access: get set

Gets or sets the object type of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.


Parent​

Type: GameObject Access: get

Gets or sets the UnityEngine.GameObject the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase is parented to on the client.


ParentId​

Type: int Access: get

Gets the parent id from the ThaumielMapEditor.API.Serialization.SerializableObject this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance was generated from.


ParentNetId​

Type: UInt32 Access: get

Gets or sets the netId of the UnityEngine.GameObject this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase is parented to.


Position​

Type: Vector3 Access: get set

Gets or sets the position of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.

note

This will be automatically synced to players.


Rotation​

Type: Quaternion Access: get set

Gets or sets the rotation of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.

note

This will be automatically synced to players.


Scale​

Type: Vector3 Access: get set

Gets or sets the scale of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.

note

This will be automatically synced to players.


ServerColliders​

Type: Collider[] Access: get set

Gets or sets the colliders of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.


Spawned​

Type: bool Access: get

Gets a value indicating whether this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase has been spawned for any players.


SpawnedPlayers​

Type: HashSet<Player> Access: get

All the LabApi.Features.Wrappers.Players that this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance has been spawned for.


WorldPosition​

Type: Vector3 Access: get set

Gets or sets the world position of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.


WorldRotation​

Type: Quaternion Access: get set

Gets or sets the world rotation of the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance.


Methods​

DespawnForAllPlayers​

DespawnForAllPlayers
public UInt32 DespawnForAllPlayers()

Destroys this object for all ready players.

Returns​

UInt32 β€” The number of players this object was despawned for.


DespawnForPlayer​

DespawnForPlayer
public void DespawnForPlayer(Player player)

Destroys this object for the specified player.

Parameters​

NameTypeDescription
playerPlayerThe player to despawn this object for.

DestroyForAllPlayers​

DestroyForAllPlayers
public void DestroyForAllPlayers()

Destroys this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance for all LabApi.Features.Wrappers.Players


DestroyForPlayer​

DestroyForPlayer
public void DestroyForPlayer(Player player)

Destroys this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance for the specified LabApi.Features.Wrappers.Player

Parameters​

NameTypeDescription
playerPlayerThe LabApi.Features.Wrappers.Player to destroy this object on.

FlushSync​

FlushSync
public void FlushSync()

Syncs all the pending bits in ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase._pendingWrites and ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase._pendingDirtyBits.


GetValue​

GetValue
public T GetValue(
SerializableObject serializable,
string key
)

Gets a value from a ThaumielMapEditor.API.Serialization.SerializableObject by key, converting it to the specified type.

Parameters​

NameTypeDescription
serializableSerializableObjectThe serializable object to retrieve the value from.
keystringThe key of the value to retrieve.

Returns​

T β€” The value associated with the key, converted to T.


HideForPlayer​

HideForPlayer
public void HideForPlayer(Player player)

Hides this object for the specified player.

Parameters​

NameTypeDescription
playerPlayerThe player to hide this object for.

SetParent​

SetParent
public void SetParent(
Player player,
UInt32 parentId
)

Sets the parent of the

Parameters​

NameTypeDescription
playerPlayerThe LabApi.Features.Wrappers.Player that will recive the parent message=
parentIdUInt32The Mirror.NetworkBehaviour.netId of the parent

ShowForPlayer​

ShowForPlayer
public void ShowForPlayer(Player player)

Shows this object for the specified player.

Parameters​

NameTypeDescription
playerPlayerThe player to show this object for.

SpawnForPlayer​

SpawnForPlayer
public void SpawnForPlayer(Player player)

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

Parameters​

NameTypeDescription
playerPlayerThe player to spawn the ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase instance to.

SpawnForPlayer​

SpawnForPlayer
public bool SpawnForPlayer(
GameObject obj,
Player player
)

Spawns a UnityEngine.GameObject to the specified LabApi.Features.Wrappers.Player.

Parameters​

NameTypeDescription
objGameObjectThe UnityEngine.GameObject to be spawned.
playerPlayerThe LabApi.Features.Wrappers.Player to be spawned for.

Returns​

bool β€” true if it is successfully spawned otherwise returns false


SyncToPlayers​

SyncToPlayers
public void SyncToPlayers(
UInt64 dirtyBits,
Action<NetworkWriter> writeValues
)

Syncs the specified bits to all LabApi.Features.Wrappers.Players this ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase is spawned for

Parameters​

NameTypeDescription
dirtyBitsUInt64The bits to sync.
writeValuesAction<NetworkWriter>The writer to use.