Class ContainerOpenPacket
Class that represents a packet for a container being opened.
Inheritance
System.Object
ContainerOpenPacket
Implements
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 SourceContainerOpenPacket(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 SourceContainerId
Gets the id of the container, as seen by the target player.
Declaration
public byte ContainerId { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Contents
Gets the contents of the container.
Declaration
public IList<IItem> Contents { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<IItem> |
HasParent
Gets a value indicating whether the container has a parent.
Declaration
public bool HasParent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets the name of the container.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
PacketType
Gets the type of this packet.
Declaration
public OutgoingPacketType PacketType { get; }
Property Value
Type | Description |
---|---|
OutgoingPacketType |
TypeId
Gets the id of the type of container.
Declaration
public ushort TypeId { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Volume
Gets the capacity of the container.
Declaration
public byte Volume { get; }
Property Value
Type | Description |
---|---|
System.Byte |