Example #1
0
        public byte[] write()
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(questCase.write());
            cmd.AddBytes(condition.write());
            return(cmd.Message.ToArray());
        }
        public byte[] write()
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(id);
            cmd.Integer(types.Count);
            foreach (var loc0 in types)
            {
                cmd.AddBytes(loc0.write());
            }
            cmd.AddBytes(rootCase.write());
            cmd.Integer(rewards.Count);
            foreach (var loc1 in rewards)
            {
                cmd.AddBytes(loc1.write());
            }
            cmd.Integer(icons.Count);
            foreach (var loc2 in icons)
            {
                cmd.AddBytes(loc2.write());
            }
            return(cmd.Message.ToArray());
        }