Example #1
0
        private static string ParseVeterancyAssetReference(IniParser parser)
        {
            var tokenPosition = parser.CurrentPosition;
            var identifier    = parser.ParseIdentifier();

            if (identifier != "HEROIC")
            {
                throw new IniParseException($"Unexpected identifier: {identifier}", tokenPosition);
            }
            return(parser.ParseAssetReference());
        }
Example #2
0
        private void ParseVeterancyGroupProperty(IniParser parser, Action <DamageFXGroup> callback)
        {
            var tokenPosition = parser.CurrentPosition;
            var identifier    = parser.ParseIdentifier();

            if (identifier != "HEROIC")
            {
                throw new IniParseException($"Unexpected identifier: {identifier}", tokenPosition);
            }

            ParseGroupProperty(parser, callback);
        }