コード例 #1
0
        public void SaveStateBinary(BinaryWriter writer)
        {
            if (!BizSwan.bizswan_binstatesave(Core, savebuff, savebuff.Length))
            {
                throw new InvalidOperationException($"{nameof(BizSwan.bizswan_binstatesave)}() returned false!");
            }
            writer.Write(savebuff.Length);
            writer.Write(savebuff);

            var d = new TextStateData();

            SaveTextStateData(d);
            BinaryQuickSerializer.Write(d, writer);
        }
コード例 #2
0
        public void SaveStateBinary(BinaryWriter writer)
        {
            if (!BizSwan.bizswan_binstatesave(Core, savebuff, savebuff.Length))
            {
                throw new InvalidOperationException("bizswan_binstatesave() returned false!");
            }
            writer.Write(savebuff.Length);
            writer.Write(savebuff);

            // other variables
            writer.Write(IsLagFrame);
            writer.Write(LagCount);
            writer.Write(Frame);
        }