private static object GetQueryItem(string field, object value, OperatorEnum operatorEnum)
 {
     return(new
     {
         @bool = new
         {
             filter = operatorEnum switch
             {
                 OperatorEnum.Term => new
                 {
                     term = new Dictionary <string, object>
                     {
                         { field, value },
                     },
                 },
                 OperatorEnum.Gte => new
                 {
                     range = new Dictionary <string, object>
                     {
                         { field, new { gte = value, } },
                     },
                 },
                 OperatorEnum.Lte => (object)new
                 {
                     range = new Dictionary <string, object>
                     {
                         { field, new { lte = value, } },
                     },
                 },
                 _ => throw new ArgumentOutOfRangeException(nameof(operatorEnum), operatorEnum, null),
             },
         },
     });
Exemplo n.º 2
0
 public object Get(
     OperatorEnum @operator,
     int operandIndex
     )
 {
     return(Get(@operator, operandIndex, null));
 }
Exemplo n.º 3
0
 public object Get(
     OperatorEnum operator_,
     int operandIndex
     )
 {
     return(Get(operator_, operandIndex, null));
 }
 public BinaryExpressionInstructionNode(string var, string @operator)
     : base(var, -1, -1)
 {
     _operator = @operator == "+" ?
                 OperatorEnum.Increment :
                 OperatorEnum.Decrement;
 }
        void getBase(OperatorEnum opratorEnum, MixedAlgoRuleEnum timeRule)
        {
            base.OpratorEnum = opratorEnum;
            this._timeRule   = timeRule;
            this.TitleString = $"{ opratorEnum.GetLocalDescription()}-{timeRule.GetLocalDescription()}";
            this.RaisePropertyChanged(() => ShowRead);
            this.RaisePropertyChanged(() => ShowEdit);

            var cl = base.GetClCase(base.LocalID);

            var results = new List <UITwoStatusWeek>();
            var groups  = cl.Positions.GroupBy(p => p.DayPeriod.Period);

            if (groups != null)
            {
                foreach (var g in groups)
                {
                    var             first = g.First();
                    UITwoStatusWeek week  = new UITwoStatusWeek()
                    {
                        Period       = first.DayPeriod,
                        PositionType = first.Position,
                    };
                    week.SetStatus(true);
                    results.Add(week);
                }
            }

            this.Periods = results;
            this.Search();
        }
        void getBase(OperatorEnum opratorEnum, AdministrativeAlgoRuleEnum timeRule)
        {
            this._timeRule   = timeRule;
            base.OpratorEnum = opratorEnum;
            this.TitleString = $"{ opratorEnum.GetLocalDescription()}-{timeRule.GetLocalDescription()}";
            this.RaisePropertyChanged(() => ShowRead);
            this.RaisePropertyChanged(() => ShowEdit);

            this.Days = new Dictionary <string, DayOfWeek>()
            {
                { "星期一", DayOfWeek.Monday },
                { "星期二", DayOfWeek.Tuesday },
                { "星期三", DayOfWeek.Wednesday },
                { "星期四", DayOfWeek.Thursday },
                { "星期五", DayOfWeek.Friday },
                { "星期六", DayOfWeek.Saturday },
                { "星期日", DayOfWeek.Sunday },
            };

            this.Day = "星期一";

            var cp = CommonDataManager.GetCPCase(base.LocalID);

            this.Periods = cp.GetDayPeriods();

            this.SelectPeriod = this.Periods.FirstOrDefault();

            Sources = cp.GetClassHours(cp.ClassHours?.Select(c => c.ID)?.ToArray());

            this.Search();
        }
Exemplo n.º 7
0
        private static MdsGridViewDapperModel GetTsqlCondition(OperatorEnum operatorEnum, string valueString, string parameterName, params string[] propertyNames)
        {
            string conditionString;
            var    tsqlCondition = new TsqlCondition();
            var    parameters    = new DynamicParameters();

            if (propertyNames.Length > 1)
            {
                conditionString = "(";
                foreach (var propertyName in propertyNames)
                {
                    tsqlCondition    = GetTsqlCondition(propertyName, operatorEnum, valueString, parameterName);
                    conditionString += tsqlCondition.Tsql + " OR ";
                }
                conditionString  = conditionString.Remove(conditionString.LastIndexOf("OR", StringComparison.InvariantCulture));
                conditionString += ")";
            }
            else
            {
                tsqlCondition   = GetTsqlCondition(propertyNames[0], operatorEnum, valueString, parameterName);
                conditionString = tsqlCondition.Tsql;
            }
            parameters.Add(parameterName, tsqlCondition.ParameterValue);
            return(new MdsGridViewDapperModel
            {
                WhereString = conditionString,
                Params = parameters
            });
        }
        void getBase(OperatorEnum opratorEnum, AdministrativeAlgoRuleEnum timeRule)
        {
            base.OpratorEnum = opratorEnum;
            this._timeRule   = timeRule;
            this.TitleString = $"{ opratorEnum.GetLocalDescription()}-{timeRule.GetLocalDescription()}";
            this.RaisePropertyChanged(() => ShowRead);
            this.RaisePropertyChanged(() => ShowEdit);
            this.RaisePropertyChanged(() => ShowMaxNumber);
            this.RaisePropertyChanged(() => ShowSameMaxNumber);

            var cp = CommonDataManager.GetCPCase(base.LocalID);

            this.Sources = cp.GetClassHours(cp.ClassHours.Select(ch => ch.ID)?.ToArray());

            var results = new List <UITwoStatusWeek>();
            var groups  = cp.Positions.GroupBy(p => p.DayPeriod.Period);

            if (groups != null)
            {
                foreach (var g in groups)
                {
                    var             first = g.First();
                    UITwoStatusWeek week  = new UITwoStatusWeek()
                    {
                        Period       = first.DayPeriod,
                        PositionType = first.Position,
                    };
                    week.SetStatus(true);
                    results.Add(week);
                }
            }
            this.Periods = results;

            this.Search();
        }
        public static AbstractCalculator GenerateCalculator(OperatorEnum operatorEnum)
        {
            AbstractCalculator _abstractCalculator = null;

            switch (operatorEnum)
            {
            case OperatorEnum.Add:
                _abstractCalculator = new AddCalculator();
                break;

            case OperatorEnum.Substract:
                _abstractCalculator = new SubstractCalculator();
                break;

            case OperatorEnum.Multiply:
                _abstractCalculator = new MultiplyCalculator();
                break;

            case OperatorEnum.Divide:
                _abstractCalculator = new DivideCalculator();
                break;

            default:
                _abstractCalculator = new AddCalculator();
                break;
            }

            return(_abstractCalculator);
        }
Exemplo n.º 10
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="operation"></param>
        /// <param name="message"></param>
        public override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message)
        {
            switch (operation)
            {
            case OperatorEnum.OPERATOR_REMOVE:
                message.Append(Id);
                break;

            case OperatorEnum.OPERATOR_ADD:
            case OperatorEnum.OPERATOR_REFRESH:
                // cell/orientation/bonus may change
                message.Append(CellId).Append(";");
                message.Append(Orientation).Append(';');
                message.Append(AgeBonus).Append(';');
                if (m_serializedMapInformations == null)
                {
                    string mobIds    = string.Join(",", m_monsters.Select(monster => monster.Grade.MonsterId.ToString()));
                    string mobGfxs   = string.Join(",", m_monsters.Select(monster => monster.Grade.Template.GfxId + "^" + monster.Grade.Template.SkinSize));
                    string mobLevels = string.Join(",", m_monsters.Select(monster => monster.Grade.Level.ToString()));
                    string mobColors = string.Join(";", m_monsters.Select(monster => monster.Grade.Template.Colors + ";0,0,0,0"));

                    m_serializedMapInformations = new StringBuilder();
                    m_serializedMapInformations.Append(Id).Append(";");
                    m_serializedMapInformations.Append(mobIds).Append(";");
                    m_serializedMapInformations.Append((int)EntityTypeEnum.TYPE_MONSTER_GROUP).Append(';');
                    m_serializedMapInformations.Append(mobGfxs).Append(";");
                    m_serializedMapInformations.Append(mobLevels).Append(";");
                    m_serializedMapInformations.Append(mobColors);
                }
                message.Append(m_serializedMapInformations.ToString());
                break;
            }
        }
Exemplo n.º 11
0
        public Criteria <TEntity> And(string selectorString, OperatorEnum operationType, object value)
        {
            if (string.IsNullOrWhiteSpace(selectorString))
            {
                throw new ArgumentException("Selector string can not be null or empty", nameof(selectorString));
            }

            var targetPropertyType = GetTargetPropertyType(_entityType, selectorString);

            if (value != null && targetPropertyType != value.GetType() && operationType != OperatorEnum.Contain && operationType != OperatorEnum.NotContain)
            {
                value = ChangeValueType(targetPropertyType, value);
            }

            var newConditionTree = new ConditionTree
            {
                OperationType       = operationType,
                Value               = value,
                NextLogicalOperator = LogicalOperatorEnum.And,
                SelectorString      = selectorString,
                Id = GetNewGuid()
            };

            ConditionContainer.Tree.ChildrenConditions.Add(newConditionTree);
            return(this);
        }
Exemplo n.º 12
0
 /// <summary>
 /// Used to create a controled tree with the nodes being specified and the type
 /// </summary>
 /// <param name="operatorType"></param>
 /// <param name="left"></param>
 /// <param name="right"></param>
 public Operator(OperatorEnum operatorType, Node left, Node right)
 {
     OperatorType = operatorType;
     _left = left;
     _right = right;
     _divideByZeroFlag = false;
 }
Exemplo n.º 13
0
 private void butonImpartit_Click(object sender, RoutedEventArgs e)
 {
     _operatorEnum = OperatorEnum.Impartit;
     if (rezultat.Text != "")
     {
         _a            = float.Parse(rezultat.Text);
         rezultat.Text = "";
     }
 }
Exemplo n.º 14
0
        public void compute(OperatorEnum operatorEnum, int operand)
        {
            var cmd = new CalculateCommand(_calculator, operatorEnum, operand);

            _calculator = cmd.Execute();
            _commands.Add(cmd);
            _cuurent++;
            Console.WriteLine(_calculator.total);
        }
Exemplo n.º 15
0
            public object Get(
                OperatorEnum @operator,
                int operandIndex,
                int?defaultValue
                )
            {
                IList <object> operands = this[(int)@operator];

                return(operands != null ? operands[operandIndex] : defaultValue);
            }
Exemplo n.º 16
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="operation"></param>
 /// <param name="message"></param>
 public override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message)
 {
     message.Append(CellId).Append(';');
     message.Append(Orientation).Append(';');
     message.Append(0).Append(';');
     message.Append(Id).Append(';');
     message.Append(Name).Append(';');
     message.Append("-9").Append(";");
     message.Append("7002").Append('^').Append(Size);
 }
Exemplo n.º 17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EnumSliderForAutomationConditionSupportedOperators" /> class.
 /// </summary>
 /// <param name="_operator">The operator to be supported by this display type. (required).</param>
 /// <param name="label">The alternative string of given operator. (required).</param>
 public EnumSliderForAutomationConditionSupportedOperators(OperatorEnum _operator = default(OperatorEnum), string label = default(string))
 {
     this.Operator = _operator;
     // to ensure "label" is required (not null)
     if (label == null)
     {
         throw new ArgumentNullException("label is a required property for EnumSliderForAutomationConditionSupportedOperators and cannot be null");
     }
     this.Label = label;
 }
Exemplo n.º 18
0
        public decimal CalculateMoney(decimal a, decimal b, OperatorEnum op)
        {
            var cal = _calculators.FirstOrDefault(s => s.Operator == op);

            if (cal is null)
            {
                throw new InvalidOperationException($"{nameof(op)} is invalid");
            }
            return(cal.CalculateMoney(a, b));
        }
Exemplo n.º 19
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="operation"></param>
        /// <param name="message"></param>
        public override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message)
        {
            switch (operation)
            {
            case OperatorEnum.OPERATOR_REMOVE:
                message.Append(Id);
                break;

            case OperatorEnum.OPERATOR_ADD:
            case OperatorEnum.OPERATOR_REFRESH:
                if (HasGameAction(GameActionTypeEnum.MAP))
                {
                    message.Append(CellId).Append(';');
                    message.Append(Orientation).Append(';');
                    if (m_serialized == null)
                    {
                        m_serialized = new StringBuilder();
                        m_serialized.Append(0).Append(';');
                        m_serialized.Append(Id).Append(';');
                        m_serialized.Append(Name).Append(';');
                        m_serialized.Append((int)Type).Append(';');
                        m_serialized.Append(SkinBase).Append('^');
                        m_serialized.Append(SkinSizeBase).Append(';');
                        m_serialized.Append(Level).Append(';');
                        m_serialized.Append(Guild.Name).Append(';');
                        m_serialized.Append(Guild.DisplayEmblem);
                    }
                    message.Append(m_serialized.ToString());
                }
                else if (HasGameAction(GameActionTypeEnum.FIGHT))
                {
                    message.Append(Cell.Id).Append(';');
                    message.Append(Orientation).Append(';');     // Direction
                    message.Append('0').Append(';');
                    message.Append(Id).Append(';');
                    message.Append(Name).Append(';');
                    message.Append((int)Type).Append(';');
                    message.Append(Skin).Append('^');
                    message.Append(SkinSize).Append(';');
                    message.Append(Level).Append(';');
                    message.Append(Life).Append(';');
                    message.Append(AP).Append(';');
                    message.Append(MP).Append(';');
                    message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentNeutral)).Append(';');
                    message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentEarth)).Append(';');
                    message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentFire)).Append(';');
                    message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentWater)).Append(';');
                    message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentAir)).Append(';');
                    message.Append(Statistics.GetTotal(EffectEnum.AddAPDodge)).Append(';');
                    message.Append(Statistics.GetTotal(EffectEnum.AddMPDodge)).Append(';');
                    message.Append(Team.Id);
                }
                break;
            }
        }
Exemplo n.º 20
0
            public static string GetOperatorName(OperatorEnum value)
            {
                switch (value)
                {
                case OperatorEnum.Charset:
                    return("charset");

                default:
                    return(value.ToString());
                }
            }
Exemplo n.º 21
0
        public void CalculateValidValuesTest(double fNum, OperatorEnum operation, double sNum, double result)
        {
            //Arrange
            var expected = result;

            //Act
            var actual = _repoFixture.ArithmeticOperations.Calc(fNum, operation, sNum);

            //Assert
            Assert.Equal(expected, actual);
        }
 public static bool IsValidForIncompatibleTypes(OperatorEnum @operator)
 {
     if (@operator == OperatorEnum.NOT_BETWEEN || @operator == OperatorEnum.NOT_EQUAL)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 23
0
        public static Operator CreateOperator(this OperatorEnum op)
        {
            var className = op.ToString();
            var type      = GetTypeByName(className);

            if (type == null)
            {
                return(new UnknownOperator());
            }

            return((Operator)Activator.CreateInstance(type, true));
        }
Exemplo n.º 24
0
        /// <summary>
        /// depending on the given properties, all nodes with these properties are searched (depth-first search).
        /// Properties which are null or the default value is set are ignore
        /// </summary>
        /// <param name="tree">tree object for search </param>
        /// <param name="properties">properties for the search</param>
        /// <param name="oper">Operator for combining the properties (and, or) </param>
        /// <returns>A list of the found tree objects</returns>
        public List <Object> getNodesByProperties(Object tree, OSMElements.OSMElement properties, OperatorEnum oper = OperatorEnum.and)
        {
            List <Object> result = new List <Object>();

            if (tree == null)
            {
                return(result);
            }
            List <String> listOfUsedProperties = OSMElements.OSMElement.getAllTypes();

            listOfUsedProperties = trimListOfProperties(listOfUsedProperties, properties);
            foreach (Object node in strategyMgr.getSpecifiedTree().AllNodes(tree))
            {
                OSMElements.OSMElement nodeData = strategyMgr.getSpecifiedTree().GetData(node);
                Boolean isToAdd = true;
                foreach (String s in listOfUsedProperties)
                {
                    Boolean resultEquals = false;
                    var     data_1       = OSMElements.OSMElement.getElement(s, nodeData);
                    var     data_2       = OSMElements.OSMElement.getElement(s, properties);
                    if ((data_1 != null && data_1.Equals(data_2)) || (data_1 == null && data_2 == null))
                    {
                        resultEquals = true;
                    }
                    else
                    {
                        resultEquals = false;
                    }

                    if (OperatorEnum.Equals(oper, OperatorEnum.and))
                    {
                        isToAdd = isToAdd && resultEquals;
                        if (!isToAdd)
                        {
                            break;
                        }
                    }
                    else
                    {
                        if (OperatorEnum.Equals(oper, OperatorEnum.or))
                        {
                            isToAdd = isToAdd || resultEquals;
                        }
                    }
                }
                if (isToAdd)
                {
                    result.Add(node);
                }
            }
            return(result);
        }
Exemplo n.º 25
0
        public VisibilityExpression(
            Document context,
            OperatorEnum @operator,
            params IPdfObjectWrapper[] operands
            ) : base(context, new PdfArray((PdfDirectObject)null))
        {
            Operator = @operator;
            var operands_ = Operands;

            foreach (var operand in operands)
            {
                operands_.Add(operand);
            }
        }
Exemplo n.º 26
0
        void getBase(OperatorEnum opratorEnum, MixedAlgoRuleEnum timeRule)
        {
            base.OpratorEnum = opratorEnum;
            this._timeRule   = timeRule;
            this.TitleString = $"{ opratorEnum.GetLocalDescription()}-{timeRule.GetLocalDescription()}";
            this.RaisePropertyChanged(() => ShowRead);
            this.RaisePropertyChanged(() => ShowEdit);

            var cl = base.GetClCase(base.LocalID);

            this.Sources = cl.GetClassHours(cl.ClassHours?.Select(ch => ch.ID)?.ToArray());

            this.Search();
        }
Exemplo n.º 27
0
        private string GetOperatorText(OperatorEnum operatorEnum)
        {
            switch (operatorEnum)
            {
            case OperatorEnum.Equal:
                return("=");

            case OperatorEnum.Like:
                return("like");

            default:
                throw new NotSupportedException(string.Format("{0} is not supported", operatorEnum));
            }
        }
Exemplo n.º 28
0
        void getBase(OperatorEnum opratorEnum, AdministrativeAlgoRuleEnum timeRule)
        {
            base.OpratorEnum = opratorEnum;
            this._timeRule   = timeRule;
            this.TitleString = $"{ opratorEnum.GetLocalDescription()}-{timeRule.GetLocalDescription()}";
            this.RaisePropertyChanged(() => ShowRead);
            this.RaisePropertyChanged(() => ShowEdit);

            var cp = CommonDataManager.GetCPCase(base.LocalID);

            this.Sources = cp.GetClassHours(cp.ClassHours?.Select(ch => ch.ID)?.ToArray());

            this.Search();
        }
Exemplo n.º 29
0
        /// <summary>
        /// depending on the given properties, all nodes with these properties are searched (depth-first search).
        /// Only properties that have been specified are taken into account.
        /// </summary>
        /// <param name="tree">tree object for search </param>
        /// <param name="generalProperties">properties for the search</param>
        /// <param name="oper">Operator for combining the properties (and, or) </param>
        /// <returns>A list of the found tree objects</returns>
        public List <Object> getNodesByProperties(Object tree, OSMElements.GeneralProperties generalProperties, OperatorEnum oper = OperatorEnum.and)
        {//TODO: many properties are still missing
            List <Object> result = new List <Object>();

            if (tree == null)
            {
                return(result);
            }
            foreach (Object node in strategyMgr.getSpecifiedTree().AllNodes(tree))
            {
                OSMElements.OSMElement nodeData       = strategyMgr.getSpecifiedTree().GetData(node);
                Boolean propertieLocalizedControlType = generalProperties.localizedControlTypeFiltered == null || nodeData.properties.localizedControlTypeFiltered.Equals(generalProperties.localizedControlTypeFiltered);
                Boolean propertieName              = generalProperties.nameFiltered == null || nodeData.properties.nameFiltered.Equals(generalProperties.nameFiltered);
                Boolean propertieIsEnabled         = generalProperties.isEnabledFiltered == null || nodeData.properties.isEnabledFiltered == generalProperties.isEnabledFiltered;
                Boolean propertieBoundingRectangle = generalProperties.boundingRectangleFiltered == new System.Windows.Rect() || nodeData.properties.boundingRectangleFiltered.Equals(generalProperties.boundingRectangleFiltered);
                Boolean propertieIdGenerated       = generalProperties.IdGenerated == null || generalProperties.IdGenerated.Equals(nodeData.properties.IdGenerated);
                Boolean propertieAccessKey         = generalProperties.accessKeyFiltered == null || generalProperties.accessKeyFiltered.Equals(nodeData.properties.accessKeyFiltered);
                Boolean acceleratorKey             = generalProperties.acceleratorKeyFiltered == null || generalProperties.acceleratorKeyFiltered.Equals(nodeData.properties.acceleratorKeyFiltered);
                Boolean runtimeId    = generalProperties.runtimeIDFiltered == null || Enumerable.SequenceEqual(generalProperties.runtimeIDFiltered, nodeData.properties.runtimeIDFiltered);
                Boolean automationId = generalProperties.autoamtionIdFiltered == null || generalProperties.autoamtionIdFiltered.Equals(nodeData.properties.autoamtionIdFiltered); //ist zumindest bei Skype für ein UI-Element nicht immer gleich
                Boolean controlType  = generalProperties.controlTypeFiltered == null || generalProperties.controlTypeFiltered.Equals(nodeData.properties.controlTypeFiltered);
                if (OperatorEnum.Equals(oper, OperatorEnum.and))
                {
                    if (propertieBoundingRectangle && propertieLocalizedControlType && propertieIdGenerated && propertieAccessKey && acceleratorKey &&
                        runtimeId && controlType && propertieName && propertieIsEnabled)
                    {
                        result.Add(node);
                    }
                }
                if (OperatorEnum.Equals(oper, OperatorEnum.or))
                {//TODO: add properties
                    if ((generalProperties.localizedControlTypeFiltered != null && propertieLocalizedControlType) ||
                        (generalProperties.nameFiltered != null && propertieName) ||
                        (generalProperties.isEnabledFiltered != null && propertieIsEnabled) ||
                        (generalProperties.boundingRectangleFiltered != new System.Windows.Rect() && propertieBoundingRectangle) ||
                        (generalProperties.IdGenerated != null && propertieIdGenerated) ||
                        (generalProperties.accessKeyFiltered != null && propertieAccessKey) ||
                        (generalProperties.acceleratorKeyFiltered != null && acceleratorKey) ||
                        (generalProperties.runtimeIDFiltered != null && runtimeId) ||
                        (generalProperties.controlTypeFiltered != null && controlType)
                        )
                    {
                        result.Add(node);
                    }
                }
            }
            return(result);
        }
Exemplo n.º 30
0
        private void findType(string op)
        {
            switch (op)
            {
            case "+": opType = OperatorEnum.Addition; precedence = PrecedenceEnum.Left; break;

            case "-": opType = OperatorEnum.Subtraction; precedence = PrecedenceEnum.Left; break;

            case "*": opType = OperatorEnum.Multiplication; precedence = PrecedenceEnum.Left; break;

            case "/": opType = OperatorEnum.Divition; precedence = PrecedenceEnum.Left; break;

            case "^": opType = OperatorEnum.Power; precedence = PrecedenceEnum.Right; break;

            default: throw new InvalidOperationException(op + " is not an operation!");
            }
        }
Exemplo n.º 31
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="operation"></param>
        /// <param name="message"></param>
        public override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message)
        {
            switch (operation)
            {
                case OperatorEnum.OPERATOR_REMOVE:
                    message.Append(Id);
                    break;

                case OperatorEnum.OPERATOR_ADD:
                case OperatorEnum.OPERATOR_REFRESH:
                    if (HasGameAction(GameActionTypeEnum.MAP))
                    {
                        if (m_serializedMapInformations == null)
                        {
                            m_serializedMapInformations = new StringBuilder();
                            m_serializedMapInformations.Append(CellId).Append(';');
                            m_serializedMapInformations.Append(Orientation).Append(';');
                            m_serializedMapInformations.Append(0).Append(';'); // ???
                            m_serializedMapInformations.Append(Id).Append(';');
                            m_serializedMapInformations.Append(Name).Append(';');
                            m_serializedMapInformations.Append((int)Type).Append(';');
                            m_serializedMapInformations.Append(DatabaseRecord.Skin).Append('^');
                            m_serializedMapInformations.Append(DatabaseRecord.SkinSize).Append(';');
                            m_serializedMapInformations.Append(HexColor1).Append(';');
                            m_serializedMapInformations.Append(HexColor2).Append(';');
                            m_serializedMapInformations.Append(HexColor3).Append(';');
                            Inventory.SerializeAs_ActorLookMessage(m_serializedMapInformations);
                            m_serializedMapInformations.Append(';');
                            if (m_guildDisplayInfos != null && GuildMember.Guild.IsActive)
                            {
                                m_serializedMapInformations.Append(m_guildDisplayInfos).Append(';');
                            }
                            else
                            {
                                m_serializedMapInformations.Append("").Append(';');
                                m_serializedMapInformations.Append("").Append(';');
                            }
                            m_serializedMapInformations.Append("0") // OffLineType
                                .Append(';');
                        }
                        message.Append(m_serializedMapInformations);
                    }
                    break;
            }
        }
Exemplo n.º 32
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="operation"></param>
        /// <param name="message"></param>
        public override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message)
        {
            switch (operation)
            {
            case OperatorEnum.OPERATOR_REMOVE:
                message.Append(Id);
                break;

            case OperatorEnum.OPERATOR_ADD:
            case OperatorEnum.OPERATOR_REFRESH:
                if (HasGameAction(GameActionTypeEnum.MAP))
                {
                    if (m_serializedMapInformations == null)
                    {
                        m_serializedMapInformations = new StringBuilder();
                        m_serializedMapInformations.Append(CellId).Append(';');
                        m_serializedMapInformations.Append(Orientation).Append(';');
                        m_serializedMapInformations.Append(0).Append(';');     // ???
                        m_serializedMapInformations.Append(Id).Append(';');
                        m_serializedMapInformations.Append(Name).Append(';');
                        m_serializedMapInformations.Append((int)Type).Append(';');
                        m_serializedMapInformations.Append(DatabaseRecord.Skin).Append('^');
                        m_serializedMapInformations.Append(DatabaseRecord.SkinSize).Append(';');
                        m_serializedMapInformations.Append(HexColor1).Append(';');
                        m_serializedMapInformations.Append(HexColor2).Append(';');
                        m_serializedMapInformations.Append(HexColor3).Append(';');
                        Inventory.SerializeAs_ActorLookMessage(m_serializedMapInformations);
                        m_serializedMapInformations.Append(';');
                        if (m_guildDisplayInfos != null && GuildMember.Guild.IsActive)
                        {
                            m_serializedMapInformations.Append(m_guildDisplayInfos).Append(';');
                        }
                        else
                        {
                            m_serializedMapInformations.Append("").Append(';');
                            m_serializedMapInformations.Append("").Append(';');
                        }
                        m_serializedMapInformations.Append("0")     // OffLineType
                        .Append(';');
                    }
                    message.Append(m_serializedMapInformations);
                }
                break;
            }
        }
Exemplo n.º 33
0
 public FieldConditionAttribute(string fieldOrProperty, object compareTo, bool compareFalse, OperatorEnum op, 
                             string fieldOrProperty2, object compareTo2, bool compareFalse2)
     : base(fieldOrProperty,compareTo,compareFalse,op,fieldOrProperty2,compareTo2,compareFalse2) {}
Exemplo n.º 34
0
 protected ConditionalAttribute(string fieldOrProperty, object compareTo, bool compareFalse, OperatorEnum op,
                             string fieldOrProperty2, object compareTo2, bool compareFalse2, 
                             string fieldOrProperty3, object compareTo3, bool compareFalse3)
     : base(null, ActionEnum.Show)
 {
     TypeSort = 55;
     Conditions = new Condition[3]
     {
         new Condition()
         {
             FieldName=fieldOrProperty,
             CompareTo=compareTo,
             CompareFalse=compareFalse
         },
         new Condition()
         {
             FieldName=fieldOrProperty2,
             CompareTo=compareTo2,
             CompareFalse=compareFalse2,
             Operator=op
         },
         new Condition()
         {
             FieldName=fieldOrProperty3,
             CompareTo=compareTo3,
             CompareFalse=compareFalse3,
             Operator=op
         }
     };
 }
Exemplo n.º 35
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="operation"></param>
 /// <param name="message"></param>
 public override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message)
 {
     message.Append(Cell.Id).Append(';');
     message.Append(Orientation).Append(';');
     message.Append("0").Append(';');
     message.Append(Id).Append(';');
     message.Append(Name).Append(';');
     message.Append((int)EntityTypeEnum.TYPE_MONSTER_FIGHTER).Append(';');
     message.Append(Skin).Append('^').Append(SkinSize).Append(';');
     message.Append(Grade.Grade).Append(';');
     message.Append(Grade.Template.Colors.Replace(",", ";"));
     message.Append(";0,0,0,0;");
     message.Append(Life).Append(';');
     message.Append(AP).Append(';');
     message.Append(MP).Append(';');
     message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentNeutral)).Append(';');
     message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentEarth)).Append(';');
     message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentFire)).Append(';');
     message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentWater)).Append(';');
     message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentAir)).Append(';');
     message.Append(Statistics.GetTotal(EffectEnum.AddAPDodge)).Append(';');
     message.Append(Statistics.GetTotal(EffectEnum.AddMPDodge)).Append(';');
     message.Append(Team.Id);
 }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="operation"></param>
        /// <param name="message"></param>
        public override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message)
        {
            switch (operation)
            {
                case OperatorEnum.OPERATOR_REMOVE:
                    message.Append(Id);
                    break;

                case OperatorEnum.OPERATOR_ADD:
                case OperatorEnum.OPERATOR_REFRESH:
                    if (HasGameAction(GameActionTypeEnum.MAP))
                    {
                        message.Append(CellId).Append(';');
                        message.Append(Orientation).Append(';');
                        if (m_serialized == null)
                        {
                            m_serialized = new StringBuilder();
                            m_serialized.Append(0).Append(';');
                            m_serialized.Append(Id).Append(';');
                            m_serialized.Append(Name).Append(';');
                            m_serialized.Append((int)Type).Append(';');
                            m_serialized.Append(SkinBase).Append('^');
                            m_serialized.Append(SkinSizeBase).Append(';');
                            m_serialized.Append(Level).Append(';');
                            m_serialized.Append(Guild.Name).Append(';');
                            m_serialized.Append(Guild.DisplayEmblem);
                        }
                        message.Append(m_serialized.ToString());
                    }
                    else if (HasGameAction(GameActionTypeEnum.FIGHT))
                    {
                        message.Append(Cell.Id).Append(';');
                        message.Append(Orientation).Append(';'); // Direction
                        message.Append('0').Append(';');
                        message.Append(Id).Append(';');
                        message.Append(Name).Append(';');
                        message.Append((int)Type).Append(';');
                        message.Append(Skin).Append('^');
                        message.Append(SkinSize).Append(';');
                        message.Append(Level).Append(';');
                        message.Append(Life).Append(';');
                        message.Append(AP).Append(';');
                        message.Append(MP).Append(';');
                        message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentNeutral)).Append(';');
                        message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentEarth)).Append(';');
                        message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentFire)).Append(';');
                        message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentWater)).Append(';');
                        message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentAir)).Append(';');
                        message.Append(Statistics.GetTotal(EffectEnum.AddAPDodge)).Append(';');
                        message.Append(Statistics.GetTotal(EffectEnum.AddMPDodge)).Append(';');
                        message.Append(Team.Id);
                    }
                    break;
            }
        }
Exemplo n.º 37
0
 /// <summary>
 /// Creates the current Node.
 /// Sets its value, flags value, and children
 /// </summary>
 /// <param name="currHeight"></param>
 /// <param name="minReached"></param>
 private void CreateCurrentNode(int currHeight, bool minReached)
 {
     OperatorType = (OperatorEnum)_rGen.Next((int)OperatorEnum.add + 1);
     _divideByZeroFlag = false;
     if (_rGen.NextDouble() < 0.5)
     {
         CreateRight(currHeight + 1);
         if (_right.Size() + currHeight >= Settings.MinTreeHeight || minReached)
         { CreateLeft(currHeight + 1); }
         else
         { CreateLeft(currHeight + 1, minReached); }
     }
     else
     {
         CreateLeft(currHeight + 1);
         if (_left.Size() + 1 >= Settings.MinTreeHeight || minReached)
         { CreateRight(currHeight + 1); }
         else
         { CreateRight(currHeight + 1, minReached); }
     }
 }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="operation"></param>
        /// <param name="message"></param>
        public override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message)
        {
            switch (operation)
            {
                case OperatorEnum.OPERATOR_REMOVE:
                    message.Append(Id);
                    break;

                case OperatorEnum.OPERATOR_ADD:
                case OperatorEnum.OPERATOR_REFRESH:
                    // cell/orientation/bonus may change
                    message.Append(CellId).Append(";");
                    message.Append(Orientation).Append(';');
                    message.Append(AgeBonus).Append(';');
                    if (m_serializedMapInformations == null)
                    {
                        string mobIds = string.Join(",", m_monsters.Select(monster => monster.Grade.MonsterId.ToString()));
                        string mobGfxs = string.Join(",", m_monsters.Select(monster => monster.Grade.Template.GfxId + "^" + monster.Grade.Template.SkinSize));
                        string mobLevels = string.Join(",", m_monsters.Select(monster => monster.Grade.Level.ToString()));
                        string mobColors = string.Join(";", m_monsters.Select(monster => monster.Grade.Template.Colors + ";0,0,0,0"));

                        m_serializedMapInformations = new StringBuilder();
                        m_serializedMapInformations.Append(Id).Append(";");
                        m_serializedMapInformations.Append(mobIds).Append(";");
                        m_serializedMapInformations.Append((int)EntityTypeEnum.TYPE_MONSTER_GROUP).Append(';');
                        m_serializedMapInformations.Append(mobGfxs).Append(";");
                        m_serializedMapInformations.Append(mobLevels).Append(";");
                        m_serializedMapInformations.Append(mobColors);
                    }
                    message.Append(m_serializedMapInformations.ToString());
                    break;
            }
        }
Exemplo n.º 39
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="operation"></param>
 /// <param name="message"></param>
 public override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message)
 {
     message.Append(CellId).Append(';');
     message.Append(Orientation).Append(';');
     message.Append(0).Append(';');
     message.Append(Id).Append(';');
     message.Append(Name).Append(';');
     message.Append("-9").Append(";");
     message.Append("7002").Append('^').Append(Size);
 }
Exemplo n.º 40
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="op"></param>
        /// <param name="message"></param>
        public void SerializeAs_CategoryMovement(OperatorEnum op, StringBuilder message)
        {
            switch(op)
            {
                case OperatorEnum.OPERATOR_ADD:
                case OperatorEnum.OPERATOR_REFRESH:
                    message.Append(Id).Append('|');
                    message.Append(TemplateId).Append('|');
                    message.Append(FirstOrDefault().Item.StringEffects).Append('|');
                    message.Append(GetLowerPrice(AuctionCategoryFloorEnum.FLOOR_ONE)).Append('|');
                    message.Append(GetLowerPrice(AuctionCategoryFloorEnum.FLOOR_TEN)).Append('|');
                    message.Append(GetLowerPrice(AuctionCategoryFloorEnum.FLOOR_HUNDRED)).Append('|');
                    break;

                case OperatorEnum.OPERATOR_REMOVE:
                    message.Append(Id).Append('|');
                    break;
            }
        }
Exemplo n.º 41
0
 /// <summary>
 /// Randomaly mutates chooses what node of the subtree to mutate.
 /// </summary>
 /// <returns></returns>
 public override bool Mutate()
 {
     if (_rGen.NextDouble() < (1.0/(Size() + 1)))
     {
         var oldOpType = OperatorType;
         OperatorType = (OperatorEnum)_rGen.Next((int)OperatorEnum.add+1);
         return oldOpType != OperatorType;
     }
     else if (_rGen.NextDouble() < 0.5) { return _right.Mutate(); }
     else { return _left.Mutate(); }
 }
Exemplo n.º 42
0
 public GroupConditionAttribute(string fieldOrProperty, object compareTo, bool compareFalse, OperatorEnum op,
                             string fieldOrProperty2, object compareTo2, bool compareFalse2, 
                             string fieldOrProperty3, object compareTo3, bool compareFalse3)
     : base(fieldOrProperty,compareTo,compareFalse,op,fieldOrProperty2,compareTo2,compareFalse2,fieldOrProperty3,compareTo3,compareFalse3) {}
Exemplo n.º 43
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="operation"></param>
        /// <param name="message"></param>
        public override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message)
        {
            switch (operation)
            {
                case OperatorEnum.OPERATOR_REMOVE:
                    message.Append(Id);
                    break;

                case OperatorEnum.OPERATOR_ADD:
                case OperatorEnum.OPERATOR_REFRESH:
                    //if (HasGameAction(GameActionTypeEnum.MAP))
                    //{
                    //    message.Append(CellId).Append(';');
                    //    message.Append(Orientation).Append(';'); ;
                    //    message.Append((int)Type).Append(';');
                    //    message.Append(Id).Append(';');
                    //    message.Append(Name).Append(';');
                    //    message.Append((int)Breed);
                    //    if (TitleId != 0)
                    //    {
                    //        message.Append(",");
                    //        message.Append(TitleId).Append('*');
                    //        message.Append(TitleParams);//  Goule de %1 = Goule de Tamere ?
                    //    }
                    //    message.Append(';');
                    //    message.Append(SkinBase).Append('^');
                    //    message.Append(SkinSizeBase).Append(';');

                    //    message.Append(Sex).Append(';');

                    //    message.Append(AlignmentId).Append(',');
                    //    message.Append(AlignmentId).Append(',');
                    //    if (AlignmentEnabled)
                    //        message.Append(AlignmentLevel).Append(',');
                    //    else
                    //        message.Append('0').Append(',');
                    //    message.Append(Id + Level).Append(';');

                    //    message.Append(HexColor1).Append(';');
                    //    message.Append(HexColor2).Append(';');
                    //    message.Append(HexColor3).Append(';');

                    //    Inventory.SerializeAs_ActorLookMessage(message);
                    //    message.Append(';');
                    //    message.Append(Aura).Append(';');
                    //    message.Append(m_lastEmoteId).Append(';'); // DisplayEmotes
                    //    message.Append(360000).Append(';'); // EmotesTimer
                    //    if (m_guildDisplayInfos != null && GuildMember.Guild.IsActive)
                    //    {
                    //        message.Append(m_guildDisplayInfos).Append(';');
                    //    }
                    //    else
                    //    {
                    //        message.Append("").Append(';'); // GuildName
                    //        message.Append("").Append(';'); // GuildEmblem
                    //    }
                    //    message.Append(Util.EncodeBase36(EntityRestriction)).Append(';');
                    //}
                    //else if (HasGameAction(GameActionTypeEnum.FIGHT))
                    //{
                    //    message.Append(Cell.Id).Append(';');
                    //    message.Append(Orientation).Append(';'); // Direction
                    //    message.Append((int)Type).Append(';');
                    //    message.Append(Id).Append(';');
                    //    message.Append(Name).Append(';');
                    //    message.Append((int)Breed).Append(';');
                    //    message.Append(Skin).Append('^');
                    //    message.Append(SkinSize).Append(';');
                    //    message.Append(Sex).Append(';');
                    //    message.Append(Level).Append(';');

                    //    message.Append(AlignmentId).Append(',');
                    //    message.Append(AlignmentId).Append(',');
                    //    if (AlignmentEnabled)
                    //        message.Append(AlignmentLevel).Append(',');
                    //    else
                    //        message.Append('0').Append(',');
                    //    message.Append(Id + Level).Append(';');

                    //    message.Append(HexColor1).Append(';');
                    //    message.Append(HexColor2).Append(';');
                    //    message.Append(HexColor3).Append(';');
                    //    Inventory.SerializeAs_ActorLookMessage(message);
                    //    message.Append(';');
                    //    message.Append(Life).Append(';');
                    //    message.Append(AP).Append(';');
                    //    message.Append(MP).Append(';');
                    //    switch (Fight.Type)
                    //    {
                    //        case FightTypeEnum.TYPE_CHALLENGE:
                    //        case FightTypeEnum.TYPE_AGGRESSION:
                    //            message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentNeutral) + Statistics.GetTotal(EffectEnum.AddReduceDamagePercentPvPNeutral)).Append(';');
                    //            message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentEarth) + Statistics.GetTotal(EffectEnum.AddReduceDamagePercentPvPEarth)).Append(';');
                    //            message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentFire) + Statistics.GetTotal(EffectEnum.AddReduceDamagePercentPvPFire)).Append(';');
                    //            message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentWater) + Statistics.GetTotal(EffectEnum.AddReduceDamagePercentPvPWater)).Append(';');
                    //            message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentAir) + Statistics.GetTotal(EffectEnum.AddReduceDamagePercentPvPAir)).Append(';');
                    //            break;

                    //        default:
                    //            message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentNeutral)).Append(';');
                    //            message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentEarth)).Append(';');
                    //            message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentFire)).Append(';');
                    //            message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentWater)).Append(';');
                    //            message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentAir)).Append(';');
                    //            break;
                    //    }
                    //    message.Append(Statistics.GetTotal(EffectEnum.AddAPDodge)).Append(';');
                    //    message.Append(Statistics.GetTotal(EffectEnum.AddMPDodge)).Append(';');
                    //    message.Append(Team.Id).Append(';');
                    //}
                    if(HasGameAction(GameActionTypeEnum.FIGHT))
                        message.Append(Cell.Id).Append(';');
                    else
                        message.Append(CellId).Append(';');
                    message.Append(Orientation).Append(';'); // Direction
                    message.Append((int)Type).Append(';');
                    message.Append(Id).Append(';');
                    message.Append(Name).Append(';');
                    message.Append((int)Breed);
                    if (TitleId != 0)
                    {
                        message.Append(",");
                        message.Append(TitleId).Append('*');
                        message.Append(TitleParams);//  Goule de %1 = Goule de Tamere ?
                    }
                    message.Append(';');
                    if (HasGameAction(GameActionTypeEnum.FIGHT))
                        message.Append(Skin).Append('^').Append(SkinSize).Append(';');
                    else
                        message.Append(SkinBase).Append('^').Append(SkinSizeBase).Append(';');
                    message.Append(Sex).Append(';');
                    if(HasGameAction(GameActionTypeEnum.FIGHT))
                        message.Append(Level).Append(';');
                    message.Append(AlignmentId).Append(',');
                    message.Append(AlignmentId).Append(',');
                    if (AlignmentEnabled)
                        message.Append(AlignmentLevel).Append(',');
                    else
                        message.Append('0').Append(',');
                    message.Append(Id + Level).Append(';');
                    message.Append(HexColor1).Append(';');
                    message.Append(HexColor2).Append(';');
                    message.Append(HexColor3).Append(';');
                    Inventory.SerializeAs_ActorLookMessage(message);
                    message.Append(';');
                    if (HasGameAction(GameActionTypeEnum.MAP))
                    {
                        message.Append(Aura).Append(';');
                        message.Append(m_lastEmoteId).Append(';'); // DisplayEmotes
                        message.Append(360000).Append(';'); // EmotesTimer
                        if (m_guildDisplayInfos != null && GuildMember.Guild.IsActive)
                        {
                            message.Append(m_guildDisplayInfos).Append(';');
                        }
                        else
                        {
                            message.Append("").Append(';'); // GuildName
                            message.Append("").Append(';'); // GuildEmblem
                        }
                        message.Append(Util.EncodeBase36(EntityRestriction)).Append(';');
                    }
                    else if (HasGameAction(GameActionTypeEnum.FIGHT))
                    {
                        message.Append(Life).Append(';');
                        message.Append(AP).Append(';');
                        message.Append(MP).Append(';');
                        switch (Fight.Type)
                        {
                            case FightTypeEnum.TYPE_CHALLENGE:
                            case FightTypeEnum.TYPE_AGGRESSION:
                                message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentNeutral) + Statistics.GetTotal(EffectEnum.AddReduceDamagePercentPvPNeutral)).Append(';');
                                message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentEarth) + Statistics.GetTotal(EffectEnum.AddReduceDamagePercentPvPEarth)).Append(';');
                                message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentFire) + Statistics.GetTotal(EffectEnum.AddReduceDamagePercentPvPFire)).Append(';');
                                message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentWater) + Statistics.GetTotal(EffectEnum.AddReduceDamagePercentPvPWater)).Append(';');
                                message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentAir) + Statistics.GetTotal(EffectEnum.AddReduceDamagePercentPvPAir)).Append(';');
                                break;

                            default:
                                message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentNeutral)).Append(';');
                                message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentEarth)).Append(';');
                                message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentFire)).Append(';');
                                message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentWater)).Append(';');
                                message.Append(Statistics.GetTotal(EffectEnum.AddReduceDamagePercentAir)).Append(';');
                                break;
                        }
                        message.Append(Statistics.GetTotal(EffectEnum.AddAPDodge)).Append(';');
                        message.Append(Statistics.GetTotal(EffectEnum.AddMPDodge)).Append(';');
                        message.Append(Team.Id).Append(';');
                    }
                    if (m_mount != null && RidingMount)
                        message.Append(m_mount.SerializeAs_MountLightInfos()).Append(';');
                    else
                        message.Append("").Append(';'); // MountLightInfos
                    break;
            }
        }
Exemplo n.º 44
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="operation"></param>
 /// <param name="message"></param>
 public abstract override void SerializeAs_GameMapInformations(OperatorEnum operation, StringBuilder message);