示例#1
0
        private static IList <EntityGroupMatcherDefinition <NPC> > DefineNPCGroups()
        {
            var matchers = new List <EntityGroupMatcherDefinition <NPC> >();

            EntityGroupDefs.DefineNPCGroups1(matchers);

            return(matchers);
        }
示例#2
0
        private static IList <Tuple <string, string[], NPCMatcher> > DefineNPCGroups()
        {
            var matchers = new List <Tuple <string, string[], NPCMatcher> >();

            Action <string, string[], NPCMatcher> addNpcGrpDef = (name, dependencies, matcher) => {
                matchers.Add(new Tuple <string, string[], NPCMatcher>(name, dependencies, matcher));
            };

            EntityGroupDefs.DefineNPCGroups1(addNpcGrpDef);

            return(matchers);
        }