Server.Items.HousePlacementEntry.ConstructHouse C# (CSharp) Method

ConstructHouse() public method

public ConstructHouse ( Mobile from ) : BaseHouse
from Mobile
return Server.Multis.BaseHouse
        public BaseHouse ConstructHouse( Mobile from )
        {
            try
            {
                object[] args;

                if ( m_Type == typeof( HouseFoundation ) )
                    args = new object[4]{ from, m_MultiID, m_Storage, m_Lockdowns };
                else if ( m_Type == typeof( SmallOldHouse ) || m_Type == typeof( SmallShop ) || m_Type == typeof( TwoStoryHouse ) )
                    args = new object[2]{ from, m_MultiID };
                else
                    args = new object[1]{ from };

                return Activator.CreateInstance( m_Type, args ) as BaseHouse;
            }
            catch
            {
            }

            return null;
        }