Struct ConnectorMetaData
- Namespace
- Vintagestory.Common.Collectible.Block
- Assembly
- VintagestoryAPI.dll
[ProtoContract]
public struct ConnectorMetaData : IEquatable<ConnectorMetaData>
- Implements
- Inherited Members
- Extension Methods
Constructors
ConnectorMetaData(FastVec3i, BlockFacing, int, string, string, string[])
public ConnectorMetaData(FastVec3i position, BlockFacing facing, int rot, string name, string targets, string[] targetsforparent)
Parameters
ConnectorMetaData(FastVec3i, BlockFacing, int, string, string[], string[])
public ConnectorMetaData(FastVec3i position, BlockFacing facing, int rot, string name, string[] targets, string[] targetsforparent)
Parameters
positionFastVec3ifacingBlockFacingrotintnamestringtargetsstring[]targetsforparentstring[]
Fields
Facing
public BlockFacing Facing
Field Value
FacingInt
[ProtoMember(2)]
public int FacingInt
Field Value
FromSchematicForDebug
public string FromSchematicForDebug
Field Value
Name
[ProtoMember(4)]
public string Name
Field Value
Position
This is an offset when loaded from schematic, but an absolute position if its part of the OpenSet during dungeon generation
[ProtoMember(1)]
public FastVec3i Position
Field Value
Rotation
[ProtoMember(3)]
public int Rotation
Field Value
Targets
[ProtoMember(5)]
public string[] Targets
Field Value
- string[]
TargetsForParent
[ProtoMember(6)]
public string[] TargetsForParent
Field Value
- string[]
Properties
Valid
True if this a properly set up BlockPosFacing
public bool Valid { get; }
Property Value
Methods
Clone()
public ConnectorMetaData Clone()
Returns
ConnectsTo(string)
public bool ConnectsTo(string name)
Parameters
namestring
Returns
ConnectsTo(ConnectorMetaData)
public bool ConnectsTo(ConnectorMetaData p)
Parameters
Returns
ConnectsTo(ConnectorMetaData, FastVec3i)
public bool ConnectsTo(ConnectorMetaData p, FastVec3i pos)
Parameters
pConnectorMetaDataposFastVec3i
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
Equals(ConnectorMetaData)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ConnectorMetaData other)
Parameters
otherConnectorMetaDataAn object to compare with this object.
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Offset(FastVec3i)
public ConnectorMetaData Offset(FastVec3i startPos)
Parameters
startPosFastVec3i
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.