Exemplo n.º 1
0
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     foreach (IWorldObject child in plantList)
     {
         child.UpdateScene(type, hint);
     }
 }
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     foreach (IWorldObject obj in Children)
     {
         obj.UpdateScene(type, hint);
     }
 }
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     foreach (IWorldObject child in children)
     {
         child.UpdateScene(type, hint);
     }
     if ((type == UpdateTypes.Markers || type == UpdateTypes.All) && hint == UpdateHint.DisplayMarker)
     {
         if (inScene == app.DisplayMarkerPoints)
         {
             return;
         }
         else
         {
             if (inScene)
             {
                 this.updating = true;
                 this.RemoveFromScene();
                 this.updating = false;
             }
             else
             {
                 this.AddToScene();
             }
         }
     }
     if ((type == UpdateTypes.All || type == UpdateTypes.Markers) && hint == UpdateHint.TerrainUpdate && allowAdjustHeightOffTerrain)
     {
         this.position.y = app.GetTerrainHeight(position.x, position.z) + terrainOffset;
     }
 }
Exemplo n.º 4
0
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     foreach (WorldObjectCollection objCol in this.worldCollections)
     {
         objCol.UpdateScene(type, hint);
     }
 }
Exemplo n.º 5
0
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     foreach (IWorldObject child in children)
     {
         child.UpdateScene(type, hint);
     }
     if ((type == UpdateTypes.All || type == UpdateTypes.Object) && hint == UpdateHint.TerrainUpdate && allowAdjustHeightOffTerrain)
     {
         this.location.y = app.GetTerrainHeight(location.x, location.z) + terrainOffset;
     }
 }
Exemplo n.º 6
0
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     if ((type == UpdateTypes.PointLight || type == UpdateTypes.All) && hint == UpdateHint.DisplayMarker)
     {
         if (displayObject != null && app.DisplayPointLightMarker)
         {
             return;
         }
         else
         {
             if (displayObject != null)
             {
                 this.RemovePointLightMarker();
             }
             else
             {
                 this.DisplayPointLightMarker();
             }
         }
     }
     if ((type == UpdateTypes.All || type == UpdateTypes.PointLight) && hint == UpdateHint.TerrainUpdate && allowAdjustHeightOffTerrain)
     {
         this.position.y = app.GetTerrainHeight(position.x, position.z) + terrainOffset;
     }
     if ((type == UpdateTypes.All || type == UpdateTypes.PointLight) && hint == UpdateHint.DisplayLight)
     {
         if (pLight.IsVisible && app.DisplayLights)
         {
             return;
         }
         else
         {
             if (pLight.IsVisible)
             {
                 this.RemoveLightFromScene();
             }
             else
             {
                 this.AddLightToScene();
             }
         }
     }
     if (type == UpdateTypes.PointLight && hint == UpdateHint.DisplayPointLightCircles)
     {
         if (this.showCircles && app.DisplayPointLightCircles)
         {
             return;
         }
         else
         {
             UpdateShowCircles();
         }
     }
 }
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     if ((type == UpdateTypes.Regions || type == UpdateTypes.All) && hint == UpdateHint.DisplayMarker)
     {
         if (inScene == app.DisplayBoundaryMarkers)
         {
             return;
         }
         else
         {
             if (inScene)
             {
                 this.RemoveFromScene();
             }
             else
             {
                 this.AddToScene();
             }
         }
     }
     if ((type == UpdateTypes.Road || type == UpdateTypes.All) && hint == UpdateHint.DisplayMarker)
     {
         if (inScene == app.DisplayRoadMarkers)
         {
             return;
         }
         else
         {
             if (inScene)
             {
                 this.RemoveFromScene();
             }
             else
             {
                 this.AddToScene();
             }
         }
     }
     if ((type == UpdateTypes.All || type == UpdateTypes.Point) && hint == UpdateHint.TerrainUpdate)
     {
         this.position.y = app.GetTerrainHeight(position.x, position.z) + terrainOffset;
     }
 }
Exemplo n.º 8
0
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     if ((type == UpdateTypes.TerrainDecal || type == UpdateTypes.All) && hint == UpdateHint.DisplayDecal)
     {
         if (inScene == app.DisplayTerrainDecals)
         {
             return;
         }
         else
         {
             if (inScene)
             {
                 this.RemoveFromScene();
             }
             else
             {
                 this.AddToScene();
             }
         }
     }
 }
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     if ((type == UpdateTypes.ParticleEffect || type == UpdateTypes.All) && hint == UpdateHint.Display)
     {
         if (inScene == app.DisplayParticleEffects)
         {
             return;
         }
         else
         {
             if (inScene)
             {
                 this.RemoveFromScene();
             }
             else
             {
                 this.AddToScene();
             }
         }
     }
 }
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     foreach (IWorldObject obj in objectList)
     {
         obj.UpdateScene(type, hint);
     }
 }
Exemplo n.º 11
0
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     foreach (IWorldObject child in treeTypes)
     {
         child.UpdateScene(type, hint);
     }
 }
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     if ((type == UpdateTypes.TerrainDecal || type == UpdateTypes.All) && hint == UpdateHint.DisplayDecal)
     {
         if (inScene == app.DisplayTerrainDecals)
         {
             return;
         }
         else
         {
             if (inScene)
             {
                 this.RemoveFromScene();
             }
             else
             {
                 this.AddToScene();
             }
         }
     }
 }
Exemplo n.º 13
0
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     foreach (IWorldObject child in children)
     {
         child.UpdateScene(type, hint);
     }
     if ((type == UpdateTypes.Markers || type == UpdateTypes.All) && hint == UpdateHint.DisplayMarker)
     {
         if (inScene == app.DisplayMarkerPoints)
         {
             return;
         }
         else
         {
             if (inScene)
             {
                 this.updating = true;
                 this.RemoveFromScene();
                 this.updating = false;
             }
             else
             {
                 this.AddToScene();
             }
         }
     }
     if ((type == UpdateTypes.All || type == UpdateTypes.Markers) && hint == UpdateHint.TerrainUpdate && allowAdjustHeightOffTerrain)
     {
         this.position.y = app.GetTerrainHeight(position.x, position.z) + terrainOffset;
     }
 }
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
 }
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     foreach (IWorldObject child in children)
     {
         child.UpdateScene(type, hint);
     }
     if ((type == UpdateTypes.All || type == UpdateTypes.Object) && hint == UpdateHint.TerrainUpdate && allowAdjustHeightOffTerrain)
     {
         this.location.y = app.GetTerrainHeight(location.x, location.z) + terrainOffset;
     }
 }
Exemplo n.º 16
0
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     foreach (WorldObjectCollection objCol in this.worldCollections)
     {
         objCol.UpdateScene(type, hint);
     }
 }
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
 }
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     if ((type == UpdateTypes.ParticleEffect || type == UpdateTypes.All) && hint == UpdateHint.Display)
     {
         if (inScene == app.DisplayParticleEffects)
         {
             return;
         }
         else
         {
             if (inScene)
             {
                 this.RemoveFromScene();
             }
             else
             {
                 this.AddToScene();
             }
         }
     }
 }
Exemplo n.º 19
0
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     if ((type == UpdateTypes.Regions || type == UpdateTypes.All) && hint == UpdateHint.DisplayMarker)
     {
         if (inScene == app.DisplayBoundaryMarkers)
         {
             return;
         }
         else
         {
             if (inScene)
             {
                 this.RemoveFromScene();
             }
             else
             {
                 this.AddToScene();
             }
         }
     }
     if ((type == UpdateTypes.Road || type == UpdateTypes.All) && hint == UpdateHint.DisplayMarker)
     {
         if (inScene == app.DisplayRoadMarkers)
         {
             return;
         }
         else
         {
             if (inScene)
             {
                 this.RemoveFromScene();
             }
             else
             {
                 this.AddToScene();
             }
         }
     }
     if ((type == UpdateTypes.All || type == UpdateTypes.Point) && hint == UpdateHint.TerrainUpdate)
     {
         this.position.y = app.GetTerrainHeight(position.x, position.z) + terrainOffset;
     }
 }
Exemplo n.º 20
0
 public void UpdateScene(UpdateTypes type, UpdateHint hint)
 {
     if ((type == UpdateTypes.PointLight || type == UpdateTypes.All) && hint == UpdateHint.DisplayMarker)
     {
         if (displayObject != null && app.DisplayPointLightMarker)
         {
             return;
         }
         else
         {
             if (displayObject != null)
             {
                 this.RemovePointLightMarker();
             }
             else
             {
                 this.DisplayPointLightMarker();
             }
         }
     }
     if ((type == UpdateTypes.All || type == UpdateTypes.PointLight) && hint == UpdateHint.TerrainUpdate && allowAdjustHeightOffTerrain)
     {
         this.position.y = app.GetTerrainHeight(position.x, position.z) + terrainOffset;
     }
     if ((type == UpdateTypes.All || type == UpdateTypes.PointLight) && hint == UpdateHint.DisplayLight)
     {
         if (pLight.IsVisible && app.DisplayLights)
         {
             return;
         }
         else
         {
             if (pLight.IsVisible)
             {
                 this.RemoveLightFromScene();
             }
             else
             {
                 this.AddLightToScene();
             }
         }
     }
     if (type == UpdateTypes.PointLight && hint == UpdateHint.DisplayPointLightCircles)
     {
         if (this.showCircles && app.DisplayPointLightCircles)
         {
             return;
         }
         else
         {
             UpdateShowCircles();
         }
     }
 }