Table of Contents

Method SetUserData

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

SetUserData<T>(T)

Sets an arbitrary json value as userdata on this token.
This userdata is not read or handled by the game engine and not sent to clients.
This mechanism only exists as a convenience for the programmer to store data bound to a windows' lifecycle.
Will do nothing if the window does not exist.

public void SetUserData<T>(T userData)

Parameters

userData T

The data to store.

Type Parameters

T

The type of data to store. Must be serializable to JSON.