Class ItemTypeEntity
Class that represents an item type entity.
Inherited Members
Namespace: Fibula.Data.Entities
Assembly: Fibula.Data.Entities.dll
Syntax
public class ItemTypeEntity : BaseEntity, IItemTypeEntity, IIdentifiableEntity, IEntity, ICloneableConstructors
| Improve this Doc View SourceItemTypeEntity()
Initializes a new instance of the ItemTypeEntity class.
Declaration
public ItemTypeEntity()Properties
| Improve this Doc View SourceClientId
Gets the client id of the type of this item.
Declaration
public ushort ClientId { get; }Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
DefaultAttributes
Gets the attributes of this type of item.
Declaration
public IDictionary<byte, IConvertible> DefaultAttributes { get; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IDictionary<System.Byte, System.IConvertible> | 
Description
Gets or sets the decription of this type of item.
Declaration
public string Description { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Flags
Gets the flags for this type of item.
Declaration
public ulong Flags { get; }Property Value
| Type | Description | 
|---|---|
| System.UInt64 | 
Remarks
The flags are stored as bits in a 64 bit unsigned integer.
Locked
Gets a value indicating whether this item type is locked and no longer accepting changes.
Declaration
public bool Locked { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Name
Gets or sets the name of this type of item.
Declaration
public string Name { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
TypeId
Gets or sets the id of the type of this item.
Declaration
public ushort TypeId { get; set; }Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
Methods
| Improve this Doc View SourceLockChanges()
Locks the type, preventing it from accepting changes.
Declaration
public void LockChanges()SetAttribute(ItemAttribute, Int32)
Sets an attribute in this type.
Declaration
public void SetAttribute(ItemAttribute attribute, int attributeValue)Parameters
| Type | Name | Description | 
|---|---|---|
| ItemAttribute | attribute | The attribute to set in the type. | 
| System.Int32 | attributeValue | The value of the attribute to set in the type. | 
SetItemFlag(ItemFlag)
Sets a flag in this type.
Declaration
public void SetItemFlag(ItemFlag itemFlag)Parameters
| Type | Name | Description | 
|---|---|---|
| ItemFlag | itemFlag | The flag to set in the type. | 
Explicit Interface Implementations
| Improve this Doc View SourceICloneable.Clone()
Clones the ItemTypeEntity into a new instance without locking the clone.
Declaration
object ICloneable.Clone()Returns
| Type | Description | 
|---|---|
| System.Object | The cloned ItemTypeEntity. |