public bool Write(DAIIO io, bool skiplength = false) { try { if (!skiplength) { io.WriteBits(Length, LengthBits); } StatData.Write(io); Script.Write(io); if (DelArgs == null) { DelArgs = new ItemAsset[ArgsCount]; for (int xb = 0; xb < ArgsCount; xb++) { DelArgs[xb] = new ItemAsset(); } } io.WriteInt16((short)DelArgs.Length); foreach (ItemAsset t in DelArgs) { t.Write(io); } io.WriteSingle(DefaultValue); return(true); } catch (Exception) { return(false); } }