Show / Hide Table of Contents

Class CollisionRectangle

Inheritance
object
Element
CollisionShape
CollisionRectangle
Inherited Members
CollisionShape.ElementType
CollisionShape.IsEnabled
CollisionShape.AutoCallEvent
CollisionShape.DimensionsMustMatch
CollisionShape.InteriorsMustMatch
CollisionShape.ElementsWithin
CollisionShape.IsWithin(Element, bool, bool)
CollisionShape.CheckElementWithin(Element)
CollisionShape.Destroy()
CollisionShape.ElementEntered
CollisionShape.ElementLeft
Element.Parent
Element.Children
Element.Associations
Element.AssociatedPlayers
Element.Id
Element.TimeContext
Element.Name
Element.position
Element.Position
Element.Right
Element.Up
Element.Forward
Element.rotation
Element.Rotation
Element.velocity
Element.Velocity
Element.turnVelocity
Element.TurnVelocity
Element.interior
Element.Interior
Element.dimension
Element.Dimension
Element.alpha
Element.Alpha
Element.areCollisionsEnabled
Element.AreCollisionsEnabled
Element.isCallPropagationEnabled
Element.IsCallPropagationEnabled
Element.isFrozen
Element.IsFrozen
Element.UpdateContext
Element.IsSync
Element.Subscribers
Element.ElementDataSubscriptions
Element.BroadcastableElementData
Element.Attachment
Element.AttachedElements
Element.IsDestroyed
Element.IsVisibleToEveryone
Element.AddSubscriber(Player)
Element.RemoveSubscriber(Player)
Element.GetAndIncrementTimeContext()
Element.CanUpdateSync(byte)
Element.RunWithContext(Action, ElementUpdateContext)
Element.RunWithContext(Func<Task>, ElementUpdateContext)
Element.RunAsSync(Action, bool)
Element.RunAsSync(Func<Task>, bool)
Element.RemoveFrom(MtaServer)
Element.AssociateWith(Player)
Element.RemoveFrom(Player)
Element.UpdateAssociatedPlayers()
Element.AddChild(Element)
Element.RemoveChild(Element)
Element.IsChildOf(Element)
Element.SetData(string, LuaValue, DataSyncType)
Element.GetData(string, bool)
Element.SubscribeToData(Player, string)
Element.UnsubscribeFromData(Player, string)
Element.UnsubscribeFromAllData(Player)
Element.IsPlayerSubscribedToData(Player, string)
Element.GetPlayersSubcribedToData(string)
Element.AttachTo(Element, Vector3?, Vector3?)
Element.DetachFrom(Element)
Element.CreateFor(IEnumerable<Player>)
Element.CreateFor(Player)
Element.DestroyFor(IEnumerable<Player>)
Element.DestroyFor(Player)
Element.PositionChanged
Element.RotationChanged
Element.VelocityChanged
Element.TurnVelocityChanged
Element.InteriorChanged
Element.DimensionChanged
Element.AlphaChanged
Element.NameChanged
Element.CallPropagationChanged
Element.CollisionEnabledChanged
Element.FrozenChanged
Element.IdChanged
Element.AssociatedWith
Element.RemovedFrom
Element.DataChanged
Element.Attached
Element.Detached
Element.AttachedOffsetChanged
Element.Destroyed
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Elements.ColShapes
Assembly: SlipeServer.Server.dll
Syntax
public class CollisionRectangle : CollisionShape

Constructors

| Edit this page View Source

CollisionRectangle(Vector2, Vector2)

Declaration
public CollisionRectangle(Vector2 position, Vector2 dimensions)
Parameters
Type Name Description
Vector2 position
Vector2 dimensions

Properties

| Edit this page View Source

Dimensions

Declaration
public Vector2 Dimensions { get; set; }
Property Value
Type Description
Vector2
| Edit this page View Source

Position2

Declaration
public Vector2 Position2 { get; set; }
Property Value
Type Description
Vector2

Methods

| Edit this page View Source

AssociateWith(MtaServer)

Declaration
public CollisionRectangle AssociateWith(MtaServer server)
Parameters
Type Name Description
MtaServer server
Returns
Type Description
CollisionRectangle
| Edit this page View Source

IsWithin(Vector3, byte?, ushort?)

Declaration
public override bool IsWithin(Vector3 position, byte? interior = null, ushort? dimension = null)
Parameters
Type Name Description
Vector3 position
byte? interior
ushort? dimension
Returns
Type Description
bool
Overrides
CollisionShape.IsWithin(Vector3, byte?, ushort?)

Events

| Edit this page View Source

DimensionsChanged

Declaration
public event ElementChangedEventHandler<Vector2>? DimensionsChanged
Event Type
Type Description
ElementChangedEventHandler<Vector2>

Extension Methods

CollisionShapePropertyRelayingExtensions.AddCollisionShapeRelayers(CollisionShape)
ElementPropertyRelayingExtensions.AddRelayers(Element)
ElementPropertyRelayingExtensions.RelayChange(Element, Packet)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX