Esempio n. 1
0
        //SpaceComponents, Dungeongrid, Dungeondimensions, Item, User, targetposition
        public static Func <StateSpaceComponents, DungeonTile[, ], Vector2, Guid, Guid, Vector2, bool> GetUseFunction(ItemUseFunctions useFunction)
        {
            switch (useFunction)
            {
            case ItemUseFunctions.TESTUSE:
                return(ItemUses.TestUse);

            default:
                return(null);
            }
        }
Esempio n. 2
0
 //SpaceComponents, Dungeongrid, Dungeondimensions, Item, User, targetposition
 public static Func<StateSpaceComponents, DungeonTile[,], Vector2, Guid, Guid, Vector2, bool> GetUseFunction(ItemUseFunctions useFunction)
 {
     switch (useFunction)
     {
         case ItemUseFunctions.TESTUSE:
             return ItemUses.TestUse;
         default:
             return null;
     }
 }