public LocalRenderLayerPresenter(LocalRenderCore renderCore)
        {
            _renderCore = renderCore;

            MethodInfo infoRenderCoreS    = _renderCore.GetType().GetMethod("RenderCore", new Type[] { typeof(RenderLayer), typeof(SpriteBatch) });
            MethodInfo infoRenderCoreD    = _renderCore.GetType().GetMethod("RenderCore", new Type[] { typeof(RenderLayer), typeof(DrawBatch) });
            MethodInfo infoRenderContentS = _renderCore.GetType().GetMethod("RenderContent", new Type[] { typeof(RenderLayer), typeof(SpriteBatch) });
            MethodInfo infoRenderContentD = _renderCore.GetType().GetMethod("RenderContent", new Type[] { typeof(RenderLayer), typeof(DrawBatch) });

            ShouldRenderCoreS    = IsOverride(infoRenderCoreS);
            ShouldRenderCoreD    = IsOverride(infoRenderCoreD);
            ShouldRenderContentS = IsOverride(infoRenderContentS);
            ShouldRenderContentD = IsOverride(infoRenderContentD);
        }
Beispiel #2
0
        public LocalRenderLayerPresenter(LocalRenderCore renderCore)
        {
            _renderCore = renderCore;

            MethodInfo infoRenderCoreS = _renderCore.GetType().GetMethod("RenderCore", new Type[] { typeof(RenderLayer), typeof(SpriteBatch) });
            MethodInfo infoRenderCoreD = _renderCore.GetType().GetMethod("RenderCore", new Type[] { typeof(RenderLayer), typeof(DrawBatch) });
            MethodInfo infoRenderContentS = _renderCore.GetType().GetMethod("RenderContent", new Type[] { typeof(RenderLayer), typeof(SpriteBatch) });
            MethodInfo infoRenderContentD = _renderCore.GetType().GetMethod("RenderContent", new Type[] { typeof(RenderLayer), typeof(DrawBatch) });

            ShouldRenderCoreS = IsOverride(infoRenderCoreS);
            ShouldRenderCoreD = IsOverride(infoRenderCoreD);
            ShouldRenderContentS = IsOverride(infoRenderContentS);
            ShouldRenderContentD = IsOverride(infoRenderContentD);
        }