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

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

            return(result);
        }
        public override GameObjectRepository VisitWorldItemSection([NotNull] sphereScript99Parser.WorldItemSectionContext context)
        {
            var defName = context.worldItemSectionHeader().sectionName().GetText();
            var builder = new GameObjectBuilderVisitor((props, tags) => new Model.Item(defName, props, tags));

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

            repository.Add(item);

            return(repository);
        }
Ejemplo n.º 3
0
 public override bool VisitWorldItemSection([NotNull] sphereScript99Parser.WorldItemSectionContext context)
 {
     return(parentVisitor.VisitWorldItemSection(context));
 }