Table of Contents

Class QueryData<T>

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public class QueryData<T> : IQueryData

Type Parameters

T
Inheritance
QueryData<T>
Implements
Inherited Members

Constructors

QueryData(Func<T>, float)

public QueryData(Func<T> valueFunc, float lifetime)

Parameters

valueFunc Func<T>
lifetime float

QueryData(Func<T>, float, T)

public QueryData(Func<T> valueFunc, float lifetime, T defaultCachedValue)

Parameters

valueFunc Func<T>
lifetime float
defaultCachedValue T

Properties

Value

public T Value { get; }

Property Value

T

Methods

Evaluate(float)

public void Evaluate(float currentTime)

Parameters

currentTime float

Expire()

public void Expire()

GetCachedValue()

public T GetCachedValue()

Returns

T

GetCachedValueWithMaxAge(float)

public T GetCachedValueWithMaxAge(float age)

Parameters

age float

Returns

T

SetSyncGroup(IQueryData[])

public void SetSyncGroup(IQueryData[] syncGroup)

Parameters

syncGroup IQueryData[]

SetValue(T, float)

public void SetValue(T value, float currentTime)

Parameters

value T
currentTime float

SetupSyncGroup(params IQueryData[])

public static void SetupSyncGroup(params IQueryData[] groupItems)

Parameters

groupItems IQueryData[]

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).