示例#1
0
        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());
            }
        }
示例#2
0
 public Type GetNextStateType(StateTypes stateTypes)
 {
     return(Type.GetType(stateTypes.ToString()));
 }
示例#3
0
    List <Item> GetSavedItems()
    {
        NPC_BaseData com = (NPC_BaseData)GetComponent(System.Type.GetType(whereItemSaved.ToString().Replace("STATE", "DATA")));

        return(com.savedItems);
    }