Esempio n. 1
0
        public ShipEditorWorld(
            IFactory factory, 
            I2DRenderUtilities twoDRenderUtilities, 
            IAssetManagerProvider assetManagerProvider, 
            IShipTool[] shipTools)
        {
            this.Entities = new List<IEntity>();

            this.m_2DRenderUtilities = twoDRenderUtilities;
            this.m_AssetManager = assetManagerProvider.GetAssetManager();
            this.m_ShipTools = shipTools;
            this.m_DefaultFont = this.m_AssetManager.Get<FontAsset>("font.Default");

            this.m_Ship = factory.CreateShip();

            this.m_ShipEditorEntity = factory.CreateShipEditorEntity(this.m_Ship);

            this.Entities.Add(this.m_ShipEditorEntity);
        }