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; }
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); }
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); }
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); }
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); }
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); }
public Operator(OperatorTypeEnum opt) { OperatorType = opt; }
public OperatorConfiguration(OperatorTypeEnum type, int requiredConsecutiveCharacterCount) { Type = type; RequiredConsecutiveCharacterCount = requiredConsecutiveCharacterCount; }
public Operator(OperatorTypeEnum type) { Type = type; }
public MainWindow(OperatorTypeEnum pRINT, string v) { this.pRINT = pRINT; this.v = v; InitializeComponent(); }