Show / Hide Table of Contents

Class MyTickTimedItemF

Item that is accessible only for defined amount of time ticks.

Inheritance
System.Object
MyTickTimedItemF
Namespace: VRage.Utils
Assembly: VRage.dll
Syntax
public sealed class MyTickTimedItemF : ValueType

Methods

Get()

Get the stored item.

Declaration
public float Get()
Returns
Type Description
System.Single

storage on success, default value of T on failure.

Set(Int32, Single)

Set the stored value.

Declaration
public void Set(int itemTickTimeout, float item)
Parameters
Type Name Description
System.Int32 itemTickTimeout

Number of time ticks for which the item is accessible.

System.Single item

Item to be stored.

TryGet(out Single)

Get the stored item.

Declaration
public bool TryGet(out float outStoredItem)
Parameters
Type Name Description
System.Single outStoredItem

item stored internally

Returns
Type Description
System.Boolean

true on success, false on timeout

☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾