Show / Hide Table of Contents

Class AdditionalUserState<T, TSelf>

A mod friendly way of adding additional state to Users.

Inheritance
System.Object
AdditionalUserState<T, TSelf>
Namespace: Eco.Gameplay.Players
Assembly: Eco.Gameplay.dll
Syntax
public abstract class AdditionalUserState<T, TSelf> : AutoSingleton<TSelf> where T : new()
    where TSelf : AdditionalUserState<T, TSelf>
Type Parameters
Name Description
T

The type of the state to save. Must be convertable to and from a string.

TSelf

Self type.

Constructors

AdditionalUserState()

Declaration
protected AdditionalUserState()

Properties

Key

Declaration
protected abstract string Key { get; }
Property Value
Type Description
System.String

OnChanged

Declaration
public ThreadSafeAction<User> OnChanged { get; }
Property Value
Type Description
ThreadSafeAction<User>

Methods

GetState(User)

Declaration
public T GetState(User user)
Parameters
Type Name Description
User user
Returns
Type Description
T

SetState(User, T)

Declaration
public void SetState(User user, T val)
Parameters
Type Name Description
User user
T val

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾