ES2Data.LoadStack

public static Stack<T> LoadStack<T>(string tag)

Parameters

[table th=”0″]T,”The type of the data we want to load. Must be on the Supported Types list.

tag,”The tag of the data we want to load.”[/table]

Returns

[table th=”0″]Stack<T>,”Our loaded data”[/table]

Description

Loads the tag of type Stack<T> from the ES2Data object.

C#

// Use ES2Data to load all of the data from a file.
ES2Data es2data = ES2.LoadAll("myFile.txt");
  
// Load an individual integer array from the loaded data.
Stack<int> myInts = es2data.LoadStack<int>("myInts");

JS

// Use ES2Data to load all of the data from a file.
var es2data : ES2Data = ES2.LoadAll("myFile.txt");
  
// Load an individual integer array from the loaded data.
var myInts : Stack<int> = es2data.LoadStack.<int>("myInts");