コード例 #1
0
ファイル: Demo.cs プロジェクト: DigitalLibrarian/xna-forever
        public Demo()
        {
            renderGroup = new QueuedList<IRenderable>();
            gameObjects = new QueuedList<IGameEntity>();

            modelEntityFactory = new ModelEntityFactory();
            Random = new Random();

            ForceRegistry = new ForceRegistry();
        }
コード例 #2
0
ファイル: Demo.cs プロジェクト: DigitalLibrarian/xna-forever
        public Demo(
            ContentManager contentManager,
            RenderContext renderContext,
            QueuedList<IRenderable> renderGroup,
            QueuedList<IGameEntity> gameObjects)
            : base()
        {
            content = contentManager;
            this.renderContext = renderContext;

            this.renderGroup = renderGroup;
            this.gameObjects = gameObjects;

            ForceRegistry = new ForceRegistry();
        }
コード例 #3
0
ファイル: Demo.cs プロジェクト: DigitalLibrarian/xna-forever
        public override void LoadContent()
        {
            if (renderContext == null)
            {
                SetupRenderContextAndCamera();
            }

            if (content == null)
            {
                content = this.ScreenManager.Game.Content;
            }

            if (ForceRegistry == null)
            {
                ForceRegistry = new ForceRegistry();
            }

            MEFactory.LoadContent(Content);
        }