Class InteractionQueryInfo
Inheritance
System.Object
InteractionQueryInfo
Namespace: Eco.Shared.Items
Assembly: Eco.Shared.dll
Syntax
[BsonAutoSerialize]
public class InteractionQueryInfo : Object, IBsonSerialize, IBsonSerializable, IBsonDeserializable
Constructors
InteractionQueryInfo()
Declaration
public InteractionQueryInfo()
Properties
BlockPosition
The targeted blocks position, if TargetObject is not set.
Declaration
public Nullable<Vector3i> BlockPosition { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Vector3i> |
HitPosition
If TargetObject is set, the position the ray interacted with the object.
Declaration
public Nullable<Vector3> HitPosition { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Numerics.Vector3> |
Parameters
Custom parameters.
Declaration
public BSONObject Parameters { get; set; }
Property Value
Type | Description |
---|---|
BSONObject |
TargetObject
Target object, if set.
Declaration
public INetObject TargetObject { get; set; }
Property Value
Type | Description |
---|---|
INetObject |
Methods
FromBson(BSONArray)
Declaration
public void FromBson(BSONArray bson)
Parameters
Type | Name | Description |
---|---|---|
BSONArray | bson |
ToBson()
Declaration
public BSONArray ToBson()
Returns
Type | Description |
---|---|
BSONArray |