コード例 #1
0
        public override void Activate()
        {
            const bool suppressMediaForDebugging = false;

            timeActivated       = DateTime.Now;
            videoPlayIsComplete = false;
            dieStoppedRolling   = false;

            if (!suppressMediaForDebugging)
            {
                string[] mediaSources = MediaSources.Split(';');
                foreach (string mediaSource in mediaSources)
                {
                    ShowStampedeMediaSource(mediaSource.Trim(), true);
                }
            }

            stampedePlaybackTimer.Start();
            stampedeDieRollGuid = Guid.NewGuid().ToString();
            DungeonMasterApp.SetNextStampedeRoll(CardName, UserName, DamageStr, stampedeDieRollGuid);
            remindDungeonMasterTimer.Start();
            HubtasticBaseStation.DiceStoppedRolling += HubtasticBaseStation_DiceStoppedRolling;
        }