Example #1
0
        public async Task Click(SocketReaction reaction, IUserMessage msg, Player argplayer)
        {
            this.player   = argplayer;
            this._channel = reaction.Channel;
            this.message  = msg;

            switch (reaction.Emote.ToString())
            {
            case inv:
                await GameCommands.DisplayInventory(player, reaction.Channel, 0);

                break;

            case sheet:
                await GameCommands.SheetDisplay(player, reaction.Channel);

                break;

            case xp:
                await GameCommands.ViewXP(player, reaction.Channel);

                break;

            case explore:
                await Commands.Areas.Exploration(player, reaction.Channel);

                break;

            case tpost:
                await Commands.Areas.ViewJunctions(player, reaction.Channel, 0);

                break;

            case ability:
                await GameCommands.Abilities(player, reaction.Channel);

                break;

            case enterFloor:
                await EnterFloor(null, reaction.Channel);

                break;

            case loot:
            {
                if (type == MsgType.Loot)
                {
                    await Loot(reaction, msg);
                }
                else
                {
                    int.TryParse(data, out int page);
                    await InventoryCommands.Inventory.ViewLoot(player, reaction.Channel, page);
                }
            } break;

            case schem:
                await GameCommands.ViewSchems(player, reaction.Channel);

                break;

            case stats:
                await GameCommands.ShortStatsDisplay(player, reaction.Channel);

                break;

            default:
                await Click2(reaction, msg);

                break;
            }
        }