fBaseXtensions.XML.OpenRiftPortalTag.CreateBehavior C# (CSharp) Method

CreateBehavior() protected method

protected CreateBehavior ( ) : Composite
return Composite
        protected override Composite CreateBehavior()
        {
            return new PrioritySelector
            (
                new Decorator(ret => FunkyGame.GameIsInvalid || !ZetaDia.IsInTown,
                    new Action( ret => m_IsDone=true)),

                new Decorator(ret => !Game.UI.ValidateUIElement(Game.UI.Game.NeaphlemObeliskDialog),
                    new Action(ret => m_IsDone = true)),

                new Decorator(ret => SendOpenPortal(),
                    new Action( ret => m_IsDone=true))
            );
        }