Show / Hide Table of Contents

Class WorldObjectPlacementRequirements

Contains all placement requirements that should be met for a WorldObject to be placed.

Inheritance
System.Object
WorldObjectPlacementRequirements
Namespace: Eco.Shared.SharedTypes
Assembly: Eco.Shared.dll
Syntax
public sealed class WorldObjectPlacementRequirements : ValueType
Remarks

Can be used from the client to make pre-emptive validations and render helpful stuff (e.g.: occupancy box).

Fields

CanBePlacedInWater

Declaration
public bool CanBePlacedInWater
Field Value
Type Description
System.Boolean

IsCustomAttachmentLogic

Declaration
public bool IsCustomAttachmentLogic
Field Value
Type Description
System.Boolean

MustBeGridAligned

Declaration
public bool MustBeGridAligned
Field Value
Type Description
System.Boolean

PositionRequirements

Declaration
public Dictionary<PositionRequirementType, List<Vector3i>> PositionRequirements
Field Value
Type Description
System.Collections.Generic.Dictionary<PositionRequirementType, System.Collections.Generic.List<Vector3i>>

RequiredAttachedSide

Declaration
public DirectionAxisFlags RequiredAttachedSide
Field Value
Type Description
DirectionAxisFlags

WallMounted

Declaration
public bool WallMounted
Field Value
Type Description
System.Boolean

WaterDepthRequirements

Declaration
public Dictionary<Vector3i, int> WaterDepthRequirements
Field Value
Type Description
System.Collections.Generic.Dictionary<Vector3i, System.Int32>

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾