Show / Hide Table of Contents

Class ClothingRestriction

Restricts an inventory to only accept fitting a specific slot

Inheritance
System.Object
InventoryRestriction
ClothingRestriction
Inherited Members
InventoryRestriction.MaxAccepted(Item, Int32)
InventoryRestriction.MaxPickup(RestrictionCheckData, Item, Int32)
InventoryRestriction.MaxAccepted(RestrictionCheckData, Item)
InventoryRestriction.MaxAccepted(RestrictionCheckData, Item, Int32)
InventoryRestriction.Priority
InventoryRestriction.Type
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
public class ClothingRestriction : InventoryRestriction

Constructors

ClothingRestriction(String, String)

Declaration
public ClothingRestriction(string slot, string failureMessage)
Parameters
Type Name Description
System.String slot
System.String failureMessage

Properties

FailureMessage

Declaration
public string FailureMessage { get; }
Property Value
Type Description
System.String

Message

Declaration
public override LocString Message { get; }
Property Value
Type Description
LocString
Overrides
InventoryRestriction.Message

Slot

Declaration
public string Slot { get; }
Property Value
Type Description
System.String

Methods

MaxAccepted(Item)

Declaration
public override int MaxAccepted(Item item)
Parameters
Type Name Description
Item item
Returns
Type Description
System.Int32
Overrides
InventoryRestriction.MaxAccepted(Item)

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾