public int WriteScriptList(MemoryStream m, ScriptListStruct sd)
        {
            int size = 0;

            size += WriteNameProperty(m, "sScriptTag", sd.ScriptTag);
            size += WriteNone(m);
            return(size);
        }
        private void ReadScriptList()
        {
            ScriptList = new List <ScriptListStruct>();
            int f = FindPropByName("m_ScriptList");

            if (f == -1)
            {
                return;
            }
            byte[] buff  = Props[f].raw;
            int    count = BitConverter.ToInt32(buff, 0x18);
            int    pos   = 0x1C;

            for (int i = 0; i < count; i++)
            {
                List <PropertyReader.Property> p = PropertyReader.ReadProp(pcc, buff, pos);
                ScriptListStruct sd = new ScriptListStruct();
                sd.ScriptTag = p[0].Value.NameValue;
                ScriptList.Add(sd);
                pos = p[p.Count - 1].offend;
            }
        }
 public int WriteScriptList(MemoryStream m, ScriptListStruct sd)
 {
     int size = 0;
     size += WriteNameProperty(m, "sScriptTag", sd.ScriptTag);
     size += WriteNone(m);
     return size;
 }
 private void ReadScriptList()
 {
     ScriptList = new List<ScriptListStruct>();
     int f = FindPropByName("m_ScriptList");
     if (f == -1)
         return;
     byte[] buff = Props[f].raw;
     int count = BitConverter.ToInt32(buff, 0x18);
     int pos = 0x1C;
     for (int i = 0; i < count; i++)
     {
         List<PropertyReader.Property> p = PropertyReader.ReadProp(pcc, buff, pos);
         ScriptListStruct sd = new ScriptListStruct();
         sd.ScriptTag = p[0].Value.IntValue;
         sd.Text = pcc.getNameEntry(sd.ScriptTag);
         ScriptList.Add(sd);
         pos = p[p.Count - 1].offend;
     }
 }