Class KitItemModel
[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
modelKitItemModel
Properties
Amount
public byte? Amount { get; set; }
Property Value
- byte?
ClothingSlot
public ClothingType? ClothingSlot { get; set; }
Property Value
Id
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column("pk")]
public uint Id { get; set; }
Property Value
Item
public UnturnedAssetReference? Item { get; set; }
Property Value
KitId
[Column("Kit")]
[Required]
public uint KitId { get; set; }
Property Value
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
RedirectVariant
[StringLength(36)]
public string? RedirectVariant { get; set; }
Property Value
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
Exceptions
- FormatException
Invalid data
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(KitItemModel?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(KitItemModel? other)
Parameters
otherKitItemModelAn object to compare with this object.
Returns
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
Returns
Operators
operator ==(KitItemModel?, KitItemModel?)
public static bool operator ==(KitItemModel? left, KitItemModel? right)
Parameters
leftKitItemModelrightKitItemModel
Returns
operator !=(KitItemModel?, KitItemModel?)
public static bool operator !=(KitItemModel? left, KitItemModel? right)
Parameters
leftKitItemModelrightKitItemModel