public static async Task <IStateItems> GetStateAsync(StateTypes type, string key = null) { key = key ?? string.Empty; switch (type) { case StateTypes.Session: return(await StateItems.LoadAsync(key, type)); case StateTypes.Frame: return(await StateItems.LoadAsync(key, type)); case StateTypes.Page: return(await StateItems.LoadAsync(key, type)); default: throw new NotSupportedException(type.ToString()); } }
public Type GetNextStateType(StateTypes stateTypes) { return(Type.GetType(stateTypes.ToString())); }
List <Item> GetSavedItems() { NPC_BaseData com = (NPC_BaseData)GetComponent(System.Type.GetType(whereItemSaved.ToString().Replace("STATE", "DATA"))); return(com.savedItems); }