Interface IBasePickup.IManagedInterface
Represents the managed interface implemented by its unmanaged counterpart.
public interface IBasePickup.IManagedInterface : IUnmanagedInterface
- Inherited Members
Methods
GetLegacyPlayer()
Gets the legacy player associated with this pickup, used for ID mapping in per-player pickups.
IPlayer GetLegacyPlayer()
Returns
- IPlayer
The associated legacy player, or
nullif not set.
GetModel()
Gets the model ID of the pickup.
int GetModel()
Returns
- int
The model ID of the pickup.
GetPickupType()
Gets the type of the pickup.
byte GetPickupType()
Returns
- byte
The type ID of the pickup.
IsPickupHiddenForPlayer(IPlayer)
Checks if the pickup is hidden for the specified player.
bool IsPickupHiddenForPlayer(IPlayer player)
Parameters
playerIPlayerThe player to check for.
Returns
- bool
trueif the pickup is hidden for the player; otherwise,false.
IsStreamedInForPlayer(IPlayer)
Checks if the pickup is streamed in for the specified player.
bool IsStreamedInForPlayer(IPlayer player)
Parameters
playerIPlayerThe player to check for.
Returns
- bool
trueif the pickup is streamed in for the player; otherwise,false.
SetLegacyPlayer(IPlayer)
Sets the legacy player for this pickup, used for ID mapping in per-player pickups.
void SetLegacyPlayer(IPlayer player)
Parameters
playerIPlayerThe player to associate with this pickup, or
null.
SetModel(int, bool)
Sets the model ID of the pickup.
void SetModel(int id, bool update = true)
Parameters
idintThe model ID to set.
updateboolWhether to update the pickup visually for all players; defaults to
true.
SetPickupHiddenForPlayer(IPlayer, bool)
Sets whether the pickup is hidden for the specified player.
void SetPickupHiddenForPlayer(IPlayer player, bool hidden)
Parameters
playerIPlayerThe player to hide or show the pickup for.
hiddenbooltrueto hide the pickup;falseto show it.
SetPositionNoUpdate(Vector3)
Sets the position of the pickup without updating the visual representation.
void SetPositionNoUpdate(Vector3 position)
Parameters
positionVector3The new position for the pickup.
SetType(byte, bool)
Sets the type of the pickup.
void SetType(byte type, bool update = true)
Parameters
typebyteThe type ID of the pickup.
updateboolWhether to update the pickup visually for all players; defaults to
true.
StreamInForPlayer(IPlayer)
Streams the pickup in for the specified player.
void StreamInForPlayer(IPlayer player)
Parameters
playerIPlayerThe player to stream the pickup in for.
StreamOutForPlayer(IPlayer)
Streams the pickup out for the specified player.
void StreamOutForPlayer(IPlayer player)
Parameters
playerIPlayerThe player to stream the pickup out for.