Пример #1
0
 public void Copy(OperatorData operatorData)
 {
     Name             = operatorData.name;
     prefabOfOperator = operatorData.prefabOfOperator;
     rangeOfOperator  = operatorData.rangeOfOperator;
     Elite            = operatorData.Elite;
     Level            = operatorData.Level;
     OperatorType     = operatorData.OperatorType;
     artBig_Ellite0   = operatorData.artBig_Ellite0;
     artBig_Ellite2   = operatorData.artBig_Ellite2;
     artSmall         = operatorData.artSmall;
     curHP            = operatorData.curHP;
     maxHP            = operatorData.maxHP;
     Attack           = operatorData.Attack;
     Defense          = operatorData.Defense;
     RES              = operatorData.RES;
     RedeployTyme     = operatorData.RedeployTyme;
     DpCost           = operatorData.DpCost;
     Block            = operatorData.Block;
     ASPD             = operatorData.ASPD;
     isLowGrounded    = operatorData.isLowGrounded;
     isHighGrounded   = operatorData.isHighGrounded;
     HealParticle     = operatorData.HealParticle;
     bulletController = operatorData.bulletController;
     CurrentEXP       = operatorData.CurrentEXP;
     NextLevelEXP     = operatorData.NextLevelEXP;
     skill            = operatorData.skill;
 }
Пример #2
0
        public void Match_Boolean_everything_else(OperatorTypeEnum operatorType)
        {
            var sut = new Criterion
            {
                Operator = new Operator
                {
                    DataType     = DataTypeEnum.Boolean,
                    OperatorType = operatorType
                },
                PropertyValue = true.ToString()
            };

            var actual = sut.Match(true);

            Assert.False(actual);
        }
Пример #3
0
        public void Match_String_operators(OperatorTypeEnum operatorType, string left, string right, bool expected)
        {
            var sut = new Criterion
            {
                Operator = new Operator
                {
                    DataType     = DataTypeEnum.String,
                    OperatorType = operatorType
                },
                PropertyValue = right
            };

            var actual = sut.Match(left);

            Assert.Equal(expected, actual);
        }
Пример #4
0
        public void Match_Long_operators(OperatorTypeEnum operatorType, long left, long right, bool expected)
        {
            var sut = new Criterion
            {
                Operator = new Operator
                {
                    DataType     = DataTypeEnum.Long,
                    OperatorType = operatorType
                },
                PropertyValue = right.ToString(CultureInfo.InvariantCulture)
            };

            var actual = sut.Match(left);

            Assert.Equal(expected, actual);
        }
Пример #5
0
        public void Match_DateTime_everything_else(OperatorTypeEnum operatorType)
        {
            var value = DateTime.UtcNow;
            var sut   = new Criterion
            {
                Operator = new Operator
                {
                    DataType     = DataTypeEnum.DateTime,
                    OperatorType = operatorType
                },
                PropertyValue = value.ToString(CultureInfo.InvariantCulture)
            };

            var actual = sut.Match(value);

            Assert.False(actual);
        }
Пример #6
0
        public void Match_DateTime_operators(OperatorTypeEnum operatorType, int year, int month, int day, int d, bool expected)
        {
            var value = new DateTime(year, month, day, 0, 0, 0, DateTimeKind.Utc);
            var sut   = new Criterion
            {
                Operator = new Operator
                {
                    DataType     = DataTypeEnum.DateTime,
                    OperatorType = operatorType
                },
                PropertyValue = value.AddDays(d).ToString(CultureInfo.InvariantCulture)
            };

            var actual = sut.Match(value);

            Assert.Equal(expected, actual);
        }
Пример #7
0
 public Operator(OperatorTypeEnum opt)
 {
     OperatorType = opt;
 }
Пример #8
0
 public OperatorConfiguration(OperatorTypeEnum type, int requiredConsecutiveCharacterCount)
 {
     Type = type;
     RequiredConsecutiveCharacterCount = requiredConsecutiveCharacterCount;
 }
Пример #9
0
 public Operator(OperatorTypeEnum type)
 {
     Type = type;
 }
Пример #10
0
 public MainWindow(OperatorTypeEnum pRINT, string v)
 {
     this.pRINT = pRINT;
     this.v     = v;
     InitializeComponent();
 }