public override string VisitWorldCharSection([NotNull] sphereScript99Parser.WorldCharSectionContext context)
        {
            name = null;
            var result = base.VisitWorldCharSection(context);

            if (name != null)
            {
                CollectStats(name, context.propertyList());
            }

            return(result);
        }
        public override GameObjectRepository VisitWorldCharSection([NotNull] sphereScript99Parser.WorldCharSectionContext context)
        {
            var defName = context.worldCharSectionHeader().sectionName().GetText();
            var builder = new GameObjectBuilderVisitor((props, tags) => new Model.Char(defName, props, tags));

            builder.Visit(context.propertyList());
            var gameChar = builder.Build();

            repository.Add(gameChar);

            return(repository);
        }
示例#3
0
 public override bool VisitWorldCharSection([NotNull] sphereScript99Parser.WorldCharSectionContext context)
 {
     return(parentVisitor.VisitWorldCharSection(context));
 }