‪TechbloxModdingAPI  ‪v2.2.0
‪The unofficial Techblox modding API
TechbloxModdingAPI.Players.PlayerEngine Class Reference
Inheritance diagram for TechbloxModdingAPI.Players.PlayerEngine:
TechbloxModdingAPI.Engines.IFunEngine TechbloxModdingAPI.Engines.IApiEngine

Public Member Functions

bool DespawnMachine (uint playerId)
 
void Dispose ()
 
void EnterSeat (uint playerId, EGID seatId)
 
bool ExistsById (uint playerId)
 
void ExitSeat (uint playerId)
 
long GetAllPlayerCount ()
 
OptionalRef< T > GetCameraStruct< T > (uint playerId)
 
OptionalRef< T > GetCharacterStruct< T > (uint playerId)
 
OptionalRef< T > GetCharacterStruct< T > (uint playerId, out ExclusiveGroupStruct group)
 
Block GetGhostBlock (uint playerId)
 
uint GetLocalPlayer ()
 
long GetLocalPlayerCount ()
 
uint GetPing ()
 
OptionalRef< T > GetPlayerStruct< T > (uint playerId, PlayerType type)
 
uint GetRemotePlayer ()
 
long GetRemotePlayerCount ()
 
unsafe Block[] GetSelectedBlocks (uint playerid)
 
EGID GetThingLookedAt (uint playerId, float maxDistance=-1f)
 
bool IsDead (uint playerId)
 
void Ready ()
 
bool SetLocation (uint playerId, float3 location, bool exitSeat=true)
 
bool SpawnMachine (uint playerId)
 

Public Attributes

bool isRemovable => false
 

Properties

EntitiesDB entitiesDB [set]
 
IEntityFunctions Functions [get, set]
 
string Name = "TechbloxModdingAPIPlayerGameEngine" [get]
 

Member Function Documentation

◆ DespawnMachine()

bool TechbloxModdingAPI.Players.PlayerEngine.DespawnMachine ( uint  playerId)
inline

◆ Dispose()

void TechbloxModdingAPI.Players.PlayerEngine.Dispose ( )
inline

◆ EnterSeat()

void TechbloxModdingAPI.Players.PlayerEngine.EnterSeat ( uint  playerId,
EGID  seatId 
)
inline

◆ ExistsById()

bool TechbloxModdingAPI.Players.PlayerEngine.ExistsById ( uint  playerId)
inline

◆ ExitSeat()

void TechbloxModdingAPI.Players.PlayerEngine.ExitSeat ( uint  playerId)
inline

◆ GetAllPlayerCount()

long TechbloxModdingAPI.Players.PlayerEngine.GetAllPlayerCount ( )
inline

◆ GetCameraStruct< T >()

OptionalRef<T> TechbloxModdingAPI.Players.PlayerEngine.GetCameraStruct< T > ( uint  playerId)
inline
Type Constraints
T :unmanaged 
T :IEntityComponent 

◆ GetCharacterStruct< T >() [1/2]

OptionalRef<T> TechbloxModdingAPI.Players.PlayerEngine.GetCharacterStruct< T > ( uint  playerId)
Type Constraints
T :unmanaged 
T :IEntityComponent 
T :GetCharacterStruct<T> 
T :playerId 
T :out 
T :_ 

◆ GetCharacterStruct< T >() [2/2]

OptionalRef<T> TechbloxModdingAPI.Players.PlayerEngine.GetCharacterStruct< T > ( uint  playerId,
out ExclusiveGroupStruct  group 
)
inline
Type Constraints
T :unmanaged 
T :IEntityComponent 

◆ GetGhostBlock()

Block TechbloxModdingAPI.Players.PlayerEngine.GetGhostBlock ( uint  playerId)
inline

◆ GetLocalPlayer()

uint TechbloxModdingAPI.Players.PlayerEngine.GetLocalPlayer ( )
inline

◆ GetLocalPlayerCount()

long TechbloxModdingAPI.Players.PlayerEngine.GetLocalPlayerCount ( )
inline

◆ GetPing()

uint TechbloxModdingAPI.Players.PlayerEngine.GetPing ( )
inline

◆ GetPlayerStruct< T >()

OptionalRef<T> TechbloxModdingAPI.Players.PlayerEngine.GetPlayerStruct< T > ( uint  playerId,
PlayerType  type 
)
inline
Type Constraints
T :unmanaged 
T :IEntityComponent 

◆ GetRemotePlayer()

uint TechbloxModdingAPI.Players.PlayerEngine.GetRemotePlayer ( )
inline

◆ GetRemotePlayerCount()

long TechbloxModdingAPI.Players.PlayerEngine.GetRemotePlayerCount ( )
inline

◆ GetSelectedBlocks()

unsafe Block [] TechbloxModdingAPI.Players.PlayerEngine.GetSelectedBlocks ( uint  playerid)
inline

◆ GetThingLookedAt()

EGID TechbloxModdingAPI.Players.PlayerEngine.GetThingLookedAt ( uint  playerId,
float  maxDistance = -1f 
)
inline

◆ IsDead()

bool TechbloxModdingAPI.Players.PlayerEngine.IsDead ( uint  playerId)
inline

◆ Ready()

void TechbloxModdingAPI.Players.PlayerEngine.Ready ( )
inline

◆ SetLocation()

bool TechbloxModdingAPI.Players.PlayerEngine.SetLocation ( uint  playerId,
float3  location,
bool  exitSeat = true 
)
inline

◆ SpawnMachine()

bool TechbloxModdingAPI.Players.PlayerEngine.SpawnMachine ( uint  playerId)
inline

Member Data Documentation

◆ isRemovable

bool TechbloxModdingAPI.Players.PlayerEngine.isRemovable => false

Property Documentation

◆ entitiesDB

EntitiesDB TechbloxModdingAPI.Players.PlayerEngine.entitiesDB
set

◆ Functions

IEntityFunctions TechbloxModdingAPI.Players.PlayerEngine.Functions
getset

◆ Name

string TechbloxModdingAPI.Players.PlayerEngine.Name = "TechbloxModdingAPIPlayerGameEngine"
get

The documentation for this class was generated from the following file: