Show / Hide Table of Contents

Class MyInventoryConstraint

Inheritance
System.Object
MyInventoryConstraint
Namespace: Sandbox.Game
Assembly: Sandbox.Game.dll
Syntax
public class MyInventoryConstraint : Object

Constructors

MyInventoryConstraint(String, String, Boolean)

Declaration
public MyInventoryConstraint(string description, string icon = null, bool whitelist = true)
Parameters
Type Name Description
System.String description
System.String icon
System.Boolean whitelist

MyInventoryConstraint(MyStringId, String, Boolean)

Declaration
public MyInventoryConstraint(MyStringId description, string icon = null, bool whitelist = true)
Parameters
Type Name Description
MyStringId description
System.String icon
System.Boolean whitelist

Fields

Description

Declaration
public readonly string Description
Field Value
Type Description
System.String

Icon

Declaration
public string Icon
Field Value
Type Description
System.String

m_useDefaultIcon

Declaration
public bool m_useDefaultIcon
Field Value
Type Description
System.Boolean

Properties

ConstrainedIds

Declaration
public HashSetReader<MyDefinitionId> ConstrainedIds { get; }
Property Value
Type Description
HashSetReader<MyDefinitionId>

ConstrainedTypes

Declaration
public HashSetReader<MyObjectBuilderType> ConstrainedTypes { get; }
Property Value
Type Description
HashSetReader<MyObjectBuilderType>

IsWhitelist

Declaration
public bool IsWhitelist { get; set; }
Property Value
Type Description
System.Boolean

Methods

Add(MyDefinitionId)

Declaration
public MyInventoryConstraint Add(MyDefinitionId id)
Parameters
Type Name Description
MyDefinitionId id
Returns
Type Description
MyInventoryConstraint

AddObjectBuilderType(MyObjectBuilderType)

Declaration
public MyInventoryConstraint AddObjectBuilderType(MyObjectBuilderType type)
Parameters
Type Name Description
MyObjectBuilderType type
Returns
Type Description
MyInventoryConstraint

Check(MyDefinitionId)

Declaration
public bool Check(MyDefinitionId checkedId)
Parameters
Type Name Description
MyDefinitionId checkedId
Returns
Type Description
System.Boolean

Clear()

Declaration
public void Clear()

Remove(MyDefinitionId)

Declaration
public MyInventoryConstraint Remove(MyDefinitionId id)
Parameters
Type Name Description
MyDefinitionId id
Returns
Type Description
MyInventoryConstraint

RemoveObjectBuilderType(MyObjectBuilderType)

Declaration
public MyInventoryConstraint RemoveObjectBuilderType(MyObjectBuilderType type)
Parameters
Type Name Description
MyObjectBuilderType type
Returns
Type Description
MyInventoryConstraint

UpdateIcon()

Declaration
public void UpdateIcon()
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾