All pages
Powered by GitBook
1 of 4

Loading...

Loading...

Loading...

Loading...

GeneratedVariableStorageExtensions

Class in Yarn.Unity

Inherits from System.Object

Summary

Methods

Name
Description

GetEnumValueOrDefault(IGeneratedVariableStorage,string)

GetValueOrDefault(IGeneratedVariableStorage,string)

Gets a value for the variable variableName from storage , or else returns the default value of T .

SetValue(IGeneratedVariableStorage,string,T)

GetEnumValueOrDefault<T>(IGeneratedVariableStorage,string)

Method in GeneratedVariableStorageExtensions

Summary

Parameters

Name
Description

Yarn.Unity.IGeneratedVariableStorage storage

string variableName

public static class GeneratedVariableStorageExtensions
public static T? GetEnumValueOrDefault<T>(this IGeneratedVariableStorage storage, string variableName)
    where T : System.Enum

SetValue<T>(IGeneratedVariableStorage,string,T)

Method in GeneratedVariableStorageExtensions

Summary

public static void SetValue<T>(this IGeneratedVariableStorage storage, string v, T value)
    where T : IConvertible

Parameters

Name
Description

storage

string v

T value

Yarn.Unity.IGeneratedVariableStorage

GetValueOrDefault<T>(IGeneratedVariableStorage,string)

Method in GeneratedVariableStorageExtensions

Summary

Gets a value for the variable variableName from storage , or else returns the default value of T .

public static T? GetValueOrDefault<T>(this IGeneratedVariableStorage storage, string variableName)
    where T : IConvertible

Parameters

Name
Description
Name
Description

The value of variableName , or the default value of T .

storage

The generated variable storage class to get the value from.

string variableName

The name of the variable to get a value for.

T

The type of the parameter to get a value for.

Type Parameters

Returns

Yarn.Unity.IGeneratedVariableStorage