GlobalObject Class |
Namespace: SampSharp.GameMode.World
public class GlobalObject : IdentifiedPool<GlobalObject>, IGameObject, IWorldObject
The GlobalObject type exposes the following members.
Name | Description | |
---|---|---|
GlobalObject |
Initializes a new instance of the GlobalObject class.
| |
GlobalObject(Int32, Vector3, Vector3) |
Initializes a new instance of the GlobalObject class.
| |
GlobalObject(Int32, Vector3, Vector3, Single) |
Initializes a new instance of the GlobalObject class.
|
Name | Description | |
---|---|---|
DrawDistance |
Gets the draw distance of this IGameObject.
| |
Id |
Gets the identifier of this instance.
(Inherited from IdentifiedPoolTInstance.) | |
IsDisposed |
Gets whether this resource has been disposed.
(Inherited from Disposable.) | |
IsMoving |
Gets whether this IGameObject is moving.
| |
IsValid |
Gets whether this IGameObject is valid.
| |
ModelId |
Gets the model of this IGameObject.
| |
Position |
Gets the position of this IWorldObject.
| |
Rotation |
Gets the rotation of this IGameObject.
|
Name | Description | |
---|---|---|
AssertNotDisposed |
Checks whether this instance has been disposed. If it has, it throws an exception.
(Inherited from Disposable.) | |
AttachCameraToObject |
Attaches a player's camera to this GlobalObject.
| |
AttachTo(BasePlayer, Vector3, Vector3) |
Attaches this GlobalObject to the specified player.
| |
AttachTo(BaseVehicle, Vector3, Vector3) |
Attaches this GlobalObject to the specified vehicle.
| |
AttachTo(GlobalObject, Vector3, Vector3, Boolean) |
Attaches this GlobalObject to the specified globalObject.
| |
DisableCameraCollisions |
Disable collisions between players' cameras and this GlobalObject.
| |
Dispose |
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.) | |
Dispose(Boolean) |
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Overrides IdentifiedPoolTInstanceDispose(Boolean).) | |
Edit |
Lets the specified player edit this PlayerObject.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Finalizes an instance of the Disposable class.
(Inherited from Disposable.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
An overloadable point for initialization logic which requires the Id to be set.
(Inherited from IdentifiedPoolTInstance.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Move(Vector3, Single) |
Moves this IGameObject to the given position with the given speed.
| |
Move(Vector3, Single, Vector3) |
Moves this IGameObject to the given position and rotation with the given speed.
| |
OnEdited |
Raises the Edited event.
| |
OnMoved |
Raises the Moved event.
| |
OnSelected |
Raises the Selected event.
| |
Remove |
Removes the specified object.
| |
Select |
Lets the specified player select an object.
| |
SetMaterial |
Sets the material of this IGameObject.
| |
SetMaterialText |
Sets the material text of this IGameObject.
| |
Stop |
Stop this IGameObject from moving any further.
| |
ToggleDefaultCameraCollisions |
Toggles the default camera collisions.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Disposed |
Occurs when this isntance has been disposed.
(Inherited from Disposable.) | |
Edited |
Occurs when the OnEdited(EditGlobalObjectEventArgs) callback is being called.
This callback is called when a player ends object edition mode.
| |
Moved |
Occurs when the OnMoved(EventArgs) callback is being called.
This callback is called when an object is moved after Move(Vector3, Single) (when it stops moving).
| |
Selected |
Occurs when the OnSelected(SelectGlobalObjectEventArgs) callback is being called.
This callback is called when a player selects an object after Select(BasePlayer) has been used.
|
Name | Description | |
---|---|---|
InvalidId |
Identifier indicating the handle is invalid.
| |
Max |
Maximum number of objects which can exist.
|