Ejemplo n.º 1
0
        public virtual bool Feild(uint k, Sio.SDataBuff d)
        {
            ParamContainerKey t = (ParamContainerKey)k;

            switch (t)
            {
            case ParamContainerKey.ParamKeyList:
            {
                Sio.SListReader plist = new Sio.SListReader();
                if (plist != null)
                {
                    Sio.SDataBuff o = new Sio.SDataBuff();
                    while (plist.Next(o))
                    {
                        Sio.SMapReader r = o.mapReader;
                        NParam         p = new NParam();
                        if (r != null && p.Unserial(r))
                        {
                            paramList.Add(p);
                        }
                    }
                }
            }
            break;

            default:
                return(false);
            }
            return(true);
        }
Ejemplo n.º 2
0
 public virtual bool Unserial(Stream s)
 {
     if (s != null)
     {
         uint size = Core.Unity.Convert.ReadUint(s);
         for (uint index = 0; index < size; ++index)
         {
             NParam parmaTemp = new NParam();
             if (parmaTemp.Unserial(s))
             {
                 paramList.Add(parmaTemp);
             }
         }
         return(true);
     }
     return(false);
 }