예제 #1
0
        private static IList <Tuple <string, string[], ItemMatcher> > DefineItemGroups()
        {
            var matchers = new List <Tuple <string, string[], ItemMatcher> >();

            Action <string, string[], ItemMatcher> addItemGrpDef = (name, grps, matcher) => {
                matchers.Add(new Tuple <string, string[], ItemMatcher>(name, grps, matcher));
            };

            EntityGroupDefs.DefineItemEquipmentGroups1(addItemGrpDef);
            EntityGroupDefs.DefineItemAccessoriesGroups1(addItemGrpDef);
            EntityGroupDefs.DefineItemWeaponGroups1(addItemGrpDef);
            EntityGroupDefs.DefineItemPlaceablesGroups1(addItemGrpDef);
            EntityGroupDefs.DefineItemMiscGroups1(addItemGrpDef);

            EntityGroupDefs.DefineItemEquipmentGroups2(addItemGrpDef);
            //EntityGroupDefs.DefineItemAccessoriesGroups2( addItemGrpDef );
            EntityGroupDefs.DefineItemWeaponGroups2(addItemGrpDef);
            EntityGroupDefs.DefineItemPlaceablesGroups2(addItemGrpDef);
            EntityGroupDefs.DefineItemMiscGroups2(addItemGrpDef);

            EntityGroupDefs.DefineItemEquipmentGroups3(addItemGrpDef);
            //EntityGroupDefs.DefineItemAccessoriesGroups3( addItemGrpDef );
            //EntityGroupDefs.DefineItemWeaponGroups3( addItemGrpDef );
            //EntityGroupDefs.DefineItemPlaceablesGroups3( addItemGrpDef );
            EntityGroupDefs.DefineItemMiscGroups3(addItemGrpDef);

            EntityGroupDefs.DefineItemEquipmentGroups4(addItemGrpDef);
            //EntityGroupDefs.DefineItemAccessoriesGroups4( addItemGrpDef );
            //EntityGroupDefs.DefineItemWeaponGroups4( addItemGrpDef );
            //EntityGroupDefs.DefineItemPlaceablesGroups4( addItemGrpDef );
            EntityGroupDefs.DefineItemMiscGroups4(addItemGrpDef);

            return(matchers);
        }
예제 #2
0
        private static IList <EntityGroupMatcherDefinition <Item> > DefineItemGroups()
        {
            var matchers = new List <EntityGroupMatcherDefinition <Item> >();

            EntityGroupDefs.DefineItemEquipmentGroups1(matchers);
            EntityGroupDefs.DefineItemAccessoriesGroups1(matchers);
            EntityGroupDefs.DefineItemWeaponGroups1(matchers);
            EntityGroupDefs.DefineItemPlaceablesGroups1(matchers);
            EntityGroupDefs.DefineItemMiscGroups1(matchers);

            EntityGroupDefs.DefineItemEquipmentGroups2(matchers);
            //EntityGroupDefs.DefineItemAccessoriesGroups2( matchers );
            EntityGroupDefs.DefineItemWeaponGroups2(matchers);
            EntityGroupDefs.DefineItemPlaceablesGroups2(matchers);
            EntityGroupDefs.DefineItemMiscGroups2(matchers);

            EntityGroupDefs.DefineItemEquipmentGroups3(matchers);
            //EntityGroupDefs.DefineItemAccessoriesGroups3( matchers );
            //EntityGroupDefs.DefineItemWeaponGroups3( matchers );
            //EntityGroupDefs.DefineItemPlaceablesGroups3( matchers );
            EntityGroupDefs.DefineItemMiscGroups3(matchers);

            EntityGroupDefs.DefineItemEquipmentGroups4(matchers);
            //EntityGroupDefs.DefineItemAccessoriesGroups4( matchers );
            //EntityGroupDefs.DefineItemWeaponGroups4( matchers );
            //EntityGroupDefs.DefineItemPlaceablesGroups4( matchers );
            EntityGroupDefs.DefineItemMiscGroups4(matchers);

            return(matchers);
        }