Table of Contents

Class KitItemModel

Namespace
Uncreated.Warfare.Models.Kits
Assembly
Uncreated.Warfare.dll
[Table("kits_items")]
public class KitItemModel : ICloneable, IEquatable<KitItemModel>
Inheritance
KitItemModel
Implements
Inherited Members

Constructors

KitItemModel()

public KitItemModel()

KitItemModel(KitItemModel)

public KitItemModel(KitItemModel model)

Parameters

model KitItemModel

Properties

Amount

public byte? Amount { get; set; }

Property Value

byte?

ClothingSlot

public ClothingType? ClothingSlot { get; set; }

Property Value

ClothingType?

Id

[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column("pk")]
public uint Id { get; set; }

Property Value

uint

Item

public UnturnedAssetReference? Item { get; set; }

Property Value

UnturnedAssetReference?

KitId

[Column("Kit")]
[Required]
public uint KitId { get; set; }

Property Value

uint

Metadata

[MaxLength(18)]
[Column(TypeName = "varbinary(18)")]
public byte[]? Metadata { get; set; }

Property Value

byte[]

Page

public Page? Page { get; set; }

Property Value

Page?

Redirect

public RedirectType? Redirect { get; set; }

Property Value

RedirectType?

RedirectVariant

[StringLength(36)]
public string? RedirectVariant { get; set; }

Property Value

string

Rotation

public byte? Rotation { get; set; }

Property Value

byte?

X

public byte? X { get; set; }

Property Value

byte?

Y

public byte? Y { get; set; }

Property Value

byte?

Methods

Clone()

Creates a new object that is a copy of the current instance.

public object Clone()

Returns

object

A new object that is a copy of this instance.

CreateRuntimeItem()

public IKitItem CreateRuntimeItem()

Returns

IKitItem

Exceptions

FormatException

Invalid data

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(KitItemModel?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(KitItemModel? other)

Parameters

other KitItemModel

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

TryGetItemSize(out byte, out byte)

public bool TryGetItemSize(out byte sizeX, out byte sizeY)

Parameters

sizeX byte
sizeY byte

Returns

bool

Operators

operator ==(KitItemModel?, KitItemModel?)

public static bool operator ==(KitItemModel? left, KitItemModel? right)

Parameters

left KitItemModel
right KitItemModel

Returns

bool

operator !=(KitItemModel?, KitItemModel?)

public static bool operator !=(KitItemModel? left, KitItemModel? right)

Parameters

left KitItemModel
right KitItemModel

Returns

bool