Exemplo n.º 1
0
 private void LoadDynamicScenery(TerrainDefinition definition)
 {
     tractor = new Tractor();
     foreach (DataRow flagRow in definition.FlagTable.Rows)
     {
         AddObject(TerrainDefinition.ObjectTypeEnum.Flag,
                   (Vector3)flagRow["Position"], new Vector3(), null);
     }
     Flag.SetSky(Program.Instance.SunPosition, Program.Instance.AmbientLightColor, Program.Instance.SunLightColor, terrainAmbient, terrainSun);
 }
Exemplo n.º 2
0
 private void DisposeDynamicScenery()
 {
     if (tractor != null)
     {
         tractor.Dispose();
         tractor = null;
     }
     foreach (Flag flag in flags)
     {
         flag.Dispose();
     }
     flags.Clear();
 }