Example #1
0
        private CombatLogEntity ProcessEntity(string value)
        {
            var entity = new CombatLogEntity(CombatLogEntity.EmptyEntityName, entityId: 0);

            var match = EntityRegex.Match(value);

            if (!match.Success) return entity;

            ProcessDisplayName(entity, match);

            entity.EntityId = Convert.ToInt64(match.Groups[2].Value);

            return entity;
        }
Example #2
0
        private static void ProcessDisplayName(CombatLogEntity entity, Match match)
        {
            string name = match.Groups[1].Value;

            if (!string.IsNullOrEmpty(name))
            {
                entity.DisplayName = name;
            }
        }