All pages
Powered by GitBook
1 of 4

Loading...

Loading...

Loading...

Loading...

GetEnumValueOrDefault<T>(IGeneratedVariableStorage,string)

Method in GeneratedVariableStorageExtensions

Summary

Parameters

Name
Description

Yarn.Unity.IGeneratedVariableStorage storage

string variableName

SetValue<T>(IGeneratedVariableStorage,string,T)

Method in GeneratedVariableStorageExtensions

Summary

Parameters

Name
Description

Yarn.Unity.IGeneratedVariableStorage storage

string v

T value

public static T? GetEnumValueOrDefault<T>(this IGeneratedVariableStorage storage, string variableName)
    where T : System.Enum
public static void SetValue<T>(this IGeneratedVariableStorage storage, string v, T value)
    where T : IConvertible

GeneratedVariableStorageExtensions

Class in Yarn.Unity

Inherits from System.Object

Summary

public static class GeneratedVariableStorageExtensions

Methods

Name
Description

GetEnumValueOrDefault(IGeneratedVariableStorage,string)

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

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

storage

The generated variable storage class to get the value from.

string variableName

The name of the variable to get a value for.

Type Parameters

Name
Description

T

The type of the parameter to get a value for.

Returns

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

Yarn.Unity.IGeneratedVariableStorage
GetValueOrDefault(IGeneratedVariableStorage,string)
SetValue(IGeneratedVariableStorage,string,T)