Server.Items.Runebook.IsOpen C# (CSharp) Méthode

IsOpen() public méthode

public IsOpen ( Mobile toCheck ) : bool
toCheck Mobile
Résultat bool
        public bool IsOpen( Mobile toCheck )
        {
            NetState ns = toCheck.NetState;

            if ( ns != null ) {
                foreach ( Gump gump in ns.Gumps ) {
                    RunebookGump bookGump = gump as RunebookGump;

                    if ( bookGump != null && bookGump.Book == this ) {
                        return true;
                    }
                }
            }

            return false;
        }