Server.Items.HouseRaffleStone.GetPlotCenter C# (CSharp) Méthode

GetPlotCenter() public méthode

public GetPlotCenter ( ) : Server.Point3D
Résultat Server.Point3D
        public Point3D GetPlotCenter()
        {
            int x = m_Bounds.X + m_Bounds.Width / 2;
            int y = m_Bounds.Y + m_Bounds.Height / 2;
            int z = ( m_Facet == null ) ? 0 : m_Facet.GetAverageZ( x, y );

            return new Point3D( x, y, z );
        }

Usage Example

Exemple #1
0
        public HouseRaffleDeed(HouseRaffleStone stone = null, Mobile m = null) : base(0x2830)
        {
            m_Stone = stone;

            if (stone != null)
            {
                m_PlotLocation = stone.GetPlotCenter();
                m_Facet        = stone.PlotFacet;
            }

            m_AwardedTo = m;

            LootType = LootType.Blessed;
            Hue      = 0x501;
        }
All Usage Examples Of Server.Items.HouseRaffleStone::GetPlotCenter