Show / Hide Table of Contents

    Class ContainerOpenPacket

    Class that represents a packet for a container being opened.

    Inheritance
    System.Object
    ContainerOpenPacket
    Implements
    IOutboundPacket
    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.Outgoing
    Assembly: Fibula.Communications.Packets.dll
    Syntax
    public class ContainerOpenPacket : IOutboundPacket

    Constructors

    | Improve this Doc View Source

    ContainerOpenPacket(Byte, UInt16, String, Byte, Boolean, IList<IItem>)

    Initializes a new instance of the ContainerOpenPacket class.

    Declaration
    public ContainerOpenPacket(byte containerId, ushort clientItemId, string name, byte volume, bool hasParent, IList<IItem> contents)
    Parameters
    Type Name Description
    System.Byte containerId

    The id of the container, as seen by the target player.

    System.UInt16 clientItemId

    The id of the type of the container.

    System.String name

    The name of the container.

    System.Byte volume

    The capacity of the container.

    System.Boolean hasParent

    A value indicating whether the container has a parent.

    System.Collections.Generic.IList<IItem> contents

    The contents of the container.

    Properties

    | Improve this Doc View Source

    ContainerId

    Gets the id of the container, as seen by the target player.

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

    Contents

    Gets the contents of the container.

    Declaration
    public IList<IItem> Contents { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<IItem>
    | Improve this Doc View Source

    HasParent

    Gets a value indicating whether the container has a parent.

    Declaration
    public bool HasParent { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Name

    Gets the name of the container.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    PacketType

    Gets the type of this packet.

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

    TypeId

    Gets the id of the type of container.

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

    Volume

    Gets the capacity of the container.

    Declaration
    public byte Volume { get; }
    Property Value
    Type Description
    System.Byte

    Implements

    IOutboundPacket

    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.