Class BlockItem
Inheritance
System.Object
BlockItem
Assembly: Eco.Gameplay.dll
Syntax
[Carried]
[WorldSpaceItem]
[ItemGroup("Block Items")]
public abstract class BlockItem : Item, IItem, ILinkableParameterized<LinkConfig>, ILinkable, IHasIcon, IInteractor, IHasInteractions, IController, IViewController, IHasUniversalID
Constructors
BlockItem()
Declaration
Fields
OnInitialize
Declaration
public static ThreadSafeAction OnInitialize
Field Value
Properties
BlockTypes
Declaration
public abstract Type[] BlockTypes { get; }
Property Value
Type |
Description |
System.Type[] |
|
CanStickToWalls
Declaration
public virtual bool CanStickToWalls { get; }
Property Value
Type |
Description |
System.Boolean |
|
ControlsText
Declaration
public static LocString ControlsText { get; }
Property Value
ControlsTextCarried
Declaration
public static LocString ControlsTextCarried { get; }
Property Value
ControlsTextHasForms
Declaration
public static LocString ControlsTextHasForms { get; }
Property Value
DisplayCrate
Declaration
public virtual bool DisplayCrate { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool HasForms { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasTier
Declaration
public bool HasTier { get; }
Property Value
Type |
Description |
System.Boolean |
|
IgnoreRooms
Declaration
public virtual bool IgnoreRooms { get; }
Property Value
Type |
Description |
System.Boolean |
|
OriginType
Declaration
public abstract Type OriginType { get; }
Property Value
Type |
Description |
System.Type |
|
Tier
Declaration
Property Value
Type |
Description |
System.Int32 |
|
Methods
CreatingItem(Type)
Declaration
public static BlockItem CreatingItem(Type blockType)
Parameters
Type |
Name |
Description |
System.Type |
blockType |
|
Returns
CreatingItems(Type)
Declaration
public static IEnumerable<BlockItem> CreatingItems(Type blockType)
Parameters
Type |
Name |
Description |
System.Type |
blockType |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<BlockItem> |
|
Drop(Player, InteractionTriggerInfo, InteractionTarget)
Declaration
[Interaction]
public void Drop(Player player, InteractionTriggerInfo triggerInfo, InteractionTarget target)
Parameters
FirstCreatingItem(Type)
Declaration
public static BlockItem FirstCreatingItem(Type blockType)
Parameters
Type |
Name |
Description |
System.Type |
blockType |
|
Returns
GetBlockItem(Type)
Declaration
public static BlockItem GetBlockItem(Type blockType)
Parameters
Type |
Name |
Description |
System.Type |
blockType |
|
Returns
Initialize()
Declaration
public static void Initialize()
Place(Player, Vector3i)
Called from the client to finalize the 'Place' interaction.
Declaration
public void Place(Player player, Vector3i position)
Parameters
Implements
Extension Methods