コード例 #1
0
        public ActionSay(Actor actor, Actor target, string text, RogueGame.Sayflags flags) : base(actor)
        {
            m_Target = target
#if DEBUG
                       ?? throw new ArgumentNullException(nameof(target))
#endif
            ;
            m_Text  = text;
            m_Flags = flags;
        }
コード例 #2
0
ファイル: ActionSay.cs プロジェクト: Tomash667/Rogue-Survivor
        public ActionSay(Actor actor, RogueGame game, Actor target, string text, RogueGame.Sayflags flags)
            : base(actor, game)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }

            m_Target = target;
            m_Text   = text;
            m_Flags  = flags;
        }