コード例 #1
0
    public static object _Restore_5716(GameStore gs)
    {
        int num = gs.ReadInt32();
        MultiValueListDictionary <uint, TriggerActionBase> dictionary = new MultiValueListDictionary <uint, TriggerActionBase>();

        for (int i = 0; i < num; i++)
        {
            uint key  = gs.ReadUInt32();
            int  num4 = gs.ReadInt32();
            for (int j = 0; j < num4; j++)
            {
                dictionary.Add(key, gs.ReadIStore() as TriggerActionBase);
            }
        }
        return(dictionary);
    }
コード例 #2
0
    public static void _Store_5716(object val, GameStore gs)
    {
        MultiValueListDictionary <uint, TriggerActionBase> dictionary = val as MultiValueListDictionary <uint, TriggerActionBase>;

        gs.WriteInt32(dictionary.Count);
        DictionaryView <uint, ListView <TriggerActionBase> > .Enumerator enumerator = dictionary.GetEnumerator();
        while (enumerator.MoveNext())
        {
            KeyValuePair <uint, ListView <TriggerActionBase> > current = enumerator.Current;
            gs.WriteUInt32(current.Key);
            KeyValuePair <uint, ListView <TriggerActionBase> > pair2 = enumerator.Current;
            int count = pair2.Value.Count;
            gs.WriteInt32(count);
            for (int i = 0; i < count; i++)
            {
            }
        }
    }