Show / Hide Table of Contents

    Class ThingMovePacket

    Class that represents a thing movement packet.

    Inheritance
    System.Object
    ThingMovePacket
    Implements
    IIncomingPacket
    IThingMoveInfo
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Fibula.Communications.Packets.Incoming
    Assembly: Fibula.Communications.Packets.dll
    Syntax
    public class ThingMovePacket : IIncomingPacket, IThingMoveInfo

    Constructors

    | Improve this Doc View Source

    ThingMovePacket(Location, UInt16, Byte, Location, Byte)

    Initializes a new instance of the ThingMovePacket class.

    Declaration
    public ThingMovePacket(Location fromLocation, ushort thingClientId, byte fromStackPos, Location toLocation, byte count)
    Parameters
    Type Name Description
    Location fromLocation

    The location from which the thing is being moved.

    System.UInt16 thingClientId

    The id of the thing being moved.

    System.Byte fromStackPos

    The position in the stack of the thing being moved.

    Location toLocation

    The location to which the thing is being moved.

    System.Byte count

    The amount of the thing being moved.

    Properties

    | Improve this Doc View Source

    Amount

    Gets the amount of the thing being moved.

    Declaration
    public byte Amount { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    FromLocation

    Gets the location from which the thing is being moved.

    Declaration
    public Location FromLocation { get; }
    Property Value
    Type Description
    Location
    | Improve this Doc View Source

    FromStackPos

    Gets the position in the stack at the location from which the thing is being moved.

    Declaration
    public byte FromStackPos { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    ThingClientId

    Gets the id of the thing, as seen by the client.

    Declaration
    public ushort ThingClientId { get; }
    Property Value
    Type Description
    System.UInt16
    | Improve this Doc View Source

    ToLocation

    Gets the location to which the thing is being moved.

    Declaration
    public Location ToLocation { get; }
    Property Value
    Type Description
    Location

    Implements

    IIncomingPacket
    IThingMoveInfo

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.