Class TWeight

Unit

Declaration

type TWeight = class(TInterfacedObject, IWeight)

Description

Current carry weight and maximum carry capacity of a player

Hierarchy

Overview

Methods

Public function GetByteSize: Cardinal;
Public function GetCurrent: Cardinal;
Public procedure SetCurrent(Current: Cardinal);
Public function GetMax: Cardinal;
Public procedure SetMax(Max: Cardinal);
Public procedure Serialize(Writer: TEoWriter);
Public class function Deserialize(Reader: TEoReader): TWeight;

Properties

Public property ByteSize: Cardinal read GetByteSize;
Public property Current: Cardinal read GetCurrent write SetCurrent;
Public property Max: Cardinal read GetMax write SetMax;

Description

Methods

Public function GetByteSize: Cardinal;

This item has no description.

Public function GetCurrent: Cardinal;

This item has no description.

Public procedure SetCurrent(Current: Cardinal);

This item has no description.

Public function GetMax: Cardinal;

This item has no description.

Public procedure SetMax(Max: Cardinal);

This item has no description.

Public procedure Serialize(Writer: TEoWriter);

Serializes this TWeight object to the provided TEoWriter.

Parameters
Writer
The writer that this object will be serialized to
Public class function Deserialize(Reader: TEoReader): TWeight;

Deserializes an instance of TWeight from the provided TEoReader.

Parameters
Reader
The reader that the object will be deserialized from
Returns

The deserialized object

Properties

Public property ByteSize: Cardinal read GetByteSize;

The size of the data that this object was deserialized from.

Note
0 if the instance was not created by the Deserialize method.

Public property Current: Cardinal read GetCurrent write SetCurrent;

Note
Value range is 0-252

Public property Max: Cardinal read GetMax write SetMax;

Note
Value range is 0-252


Generated by PasDoc 0.16.0-snapshot.