protected override void WorldViewTechniqueChange(WorldViewTechnique technique)
 {
     base.WorldViewTechniqueChange(technique);
     if (technique != null)
     {
         this.WorldEntityMappingService = technique.GetService <IWorldEntityMappingService>();
     }
     else
     {
         this.WorldEntityMappingService = null;
     }
 }
 protected override void WorldViewTechniqueChange(WorldViewTechnique technique)
 {
     base.WorldViewTechniqueChange(technique);
     if (technique != null)
     {
         this.ResourceRendererService   = technique.Services.GetService <IResourceRendererService>();
         this.VisibilityRendererService = technique.Services.GetService <IVisibilityRendererService>();
         this.worldEntityCullingService = technique.GetService <IWorldEntityCullingService>();
         return;
     }
     this.ResourceRendererService   = null;
     this.VisibilityRendererService = null;
     this.worldEntityCullingService = null;
 }
 protected override void WorldViewTechniqueChange(WorldViewTechnique technique)
 {
     base.WorldViewTechniqueChange(technique);
     if (technique != null)
     {
         this.ResourceRendererService   = technique.Services.GetService <IResourceRendererService>();
         this.VisibilityRendererService = technique.Services.GetService <IVisibilityRendererService>();
         this.WorldEntityFactoryService = technique.Services.GetService <IWorldEntityFactoryService>();
     }
     else
     {
         this.ResourceRendererService   = null;
         this.VisibilityRendererService = null;
         this.WorldEntityFactoryService = null;
     }
 }
Exemple #4
0
 protected override void WorldViewTechniqueChange(WorldViewTechnique technique)
 {
     base.WorldViewTechniqueChange(technique);
     if (technique != null)
     {
         this.PathRendererService = technique.Services.GetService <IPathRendererService>();
         if (this.PathRendererService == null)
         {
             Diagnostics.LogError("Invalid null path renderer service.");
             return;
         }
     }
     else
     {
         this.PathRendererService = null;
     }
 }