Show / Hide Table of Contents

Class InteractionTargetServerExtensions

Server side accessors for InteractionTarget

Inheritance
System.Object
InteractionTargetServerExtensions
Namespace: Eco.Gameplay.Interactions.Interactors
Assembly: Eco.Gameplay.dll
Syntax
public static class InteractionTargetServerExtensions : Object

Methods

Block(InteractionTarget)

Declaration
public static Block Block(this InteractionTarget target)
Parameters
Type Name Description
InteractionTarget target
Returns
Type Description
Block

TryCast<T>(InteractionTarget, out T)

If a block is selected, try casting to the given interface. If an object is selcted, try casting that.

Declaration
public static bool TryCast<T>(this InteractionTarget target, out T val)
Parameters
Type Name Description
InteractionTarget target
T val
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾