Interface IPickupsComponent.IManagedInterface
Represents the managed interface implemented by its unmanaged counterpart.
public interface IPickupsComponent.IManagedInterface : IUnmanagedInterface
- Inherited Members
Methods
Create(int, byte, Vector3, uint, bool)
Creates a new pickup.
IPickup Create(int modelId, byte type, Vector3 pos, uint virtualWorld, bool isStatic)
Parameters
modelIdintThe model ID of the pickup.
typebyteThe type of the pickup.
posVector3The position where the pickup will be created.
virtualWorlduintThe virtual world ID for the pickup.
isStaticboolWhether the pickup is static and cannot be moved.
Returns
- IPickup
The created pickup, or
nullif creation failed.
FromLegacyID(int)
Converts a legacy pickup ID to its real ID equivalent.
int FromLegacyID(int legacy)
Parameters
legacyintThe legacy pickup ID.
Returns
- int
The real pickup ID.
GetEventDispatcher()
Gets the event dispatcher for pickup events.
IEventDispatcher<IPickupEventHandler> GetEventDispatcher()
Returns
- IEventDispatcher<IPickupEventHandler>
An event dispatcher for IPickupEventHandler events.
ReleaseLegacyID(int)
Releases a legacy pickup ID that was previously reserved.
void ReleaseLegacyID(int legacy)
Parameters
legacyintThe legacy pickup ID to release.
ReserveLegacyID()
Reserves an unused legacy pickup ID.
int ReserveLegacyID()
Returns
- int
A reserved legacy pickup ID.
SetLegacyID(int, int)
Assigns a real pickup ID to a previously reserved legacy ID.
void SetLegacyID(int legacy, int real)
Parameters
ToLegacyID(int)
Converts a real pickup ID to its legacy ID equivalent.
int ToLegacyID(int real)
Parameters
realintThe real pickup ID.
Returns
- int
The legacy pickup ID.