示例#1
0
        public virtual bool Meet(IEventArgs args)
        {
            if (value.IsNull())
            {
                if (con.Equals("=="))
                {
                    return(!para.IsNotNull(args));
                }
                else
                {
                    if (con.Equals("<>"))
                    {
                        return(para.IsNotNull(args));
                    }
                }
            }
            IPara source = para.GetSourcePara(args);

            if (source != null)
            {
                IPara target = value.GetTargetPara(args, source);
                try
                {
                    bool r = source.Meet(con, target);
                    target.Recycle();
                    return(r);
                }
                catch (Exception e)
                {
                    throw new GameConfigExpception(para.ToString() + con + value.ToString() + " is not valid.\n" + ExceptionUtil.GetExceptionContent(e));
                }
            }
            return(false);
        }