示例#1
0
        protected virtual int SerializeImpl(MegaloScriptModel model, IO.BitStream s)
        {
            int type = s.IsReading ? TypeExtensions.kNone : ProtoData.DBID;

            model.Database.StreamConditionType(s, ref type);
            if (type != 0)
            {
                s.Stream(ref mInverted);
                model.StreamLocalUnionGroupIndex(s, ref mUnionGroup);
                s.Stream(ref ExecuteBeforeAction, model.Database.Limits.Actions.IndexBitLength);
            }
            return(type);
        }