Exemple #1
0
        protected List <int> GetPlayerIds(IDungeonMasterApp dungeonMasterApp, bool testAllPlayers)
        {
            List <int> playerIds = new List <int>();

            if (testAllPlayers)
            {
                playerIds.Add(int.MaxValue);
            }
            else if (TargetPlayer == null)
            {
                playerIds.Add(dungeonMasterApp.GetActivePlayerId());
            }
            else
            {
                playerIds.Add(dungeonMasterApp.GetPlayerIdFromName(TargetPlayer));
            }
            return(playerIds);
        }