Пример #1
0
 public FlagsField_Byte_Dyna(DynaBase asset, int flagsLoc, DynamicTypeDescriptor dt, string[] flagNames)
     : base(asset, flagsLoc, dt)
 {
     for (uint i = 0; i < 8; i++)
     {
         AddPropertyAt(i, flagNames);
     }
 }
Пример #2
0
        public void OnDynaSpecificPropertyChange(DynaBase value)
        {
            List <byte> dataBefore = Data.Take(0x10).ToList();
            List <byte> dataAfter  = Data.Skip(EventStartOffset).ToList();

            dataBefore.AddRange(value.ToByteArray());
            dataBefore.AddRange(dataAfter);

            _dynaSpecific = value;
            Data          = dataBefore.ToArray();
        }