예제 #1
0
            public override void OnClick()
            {
                if (_from != null)
                {
                    Dictionary <int, PlayerMobile> PlayersAboard = new Dictionary <int, PlayerMobile>();
                    IPooledEnumerable eable = _from.Map.GetClientsInRange(_from.Location, _galleon.GetMaxUpdateRange());
                    int i = 0;
                    foreach (NetState state in eable)
                    {
                        Mobile m = state.Mobile;

                        if (m is PlayerMobile)
                        {
                            if (_galleon.IsOnBoard(m))
                            {
                                PlayersAboard.Add(i++, (PlayerMobile)m);
                            }
                        }
                    }
                    eable.Free();

                    _from.SendGump(new SecuritySettingsGump(SecuritySettingsGumpPage.Default, _from, _galleon, PlayersAboard, 1, null));
                }
            }