internal Script(bool flag) : base() { _displayName = "Script"; _icon = "16/script.png"; _instances = new UISafeObservableCollection <Instance>(); _allowedChildren = new List <Type>(); Initialize(); }
public Script() : base() { _displayName = "Script"; _icon = "16/script.png"; _instances = new UISafeObservableCollection <Instance>(); _allowedChildren = new List <Type>(); parent = ActiveScene.Context.ActiveWorld.World; Initialize(); }
internal World(bool flag) : base() { _displayName = "World"; _instances = new UISafeObservableCollection <Instance>(); _icon = "16/world.png"; _allowedChildren = new List <Type>(); _allowedChildren.Add(typeof(Instance)); _isRoot = true; Initialize(); }
public ActiveWorld() { if (_activeWorld != null) { throw new Exception("Multiple active worlds initialized! Only one active world object should exist!"); } _activeWorld = this; _instances = new UISafeObservableCollection <Instance>(); _world = new World(true); _instances.Add(_world); _sky = new Sky(true); _instances.Add(_sky); _camera = new Camera(true); }
internal Part(bool flag) : base() { _displayName = "Part"; _icon = "16/brick.png"; _instances = new UISafeObservableCollection <Instance>(); _allowedChildren = new List <Type>(); _allowedChildren.Add(typeof(Instance)); _anchored = true; _collisions = true; _material = Properties.Material.GRASS; Initialize(); }
internal Camera(bool flag) : base() { _displayName = "Camera"; _icon = "Legacy/camera.png"; _instances = new UISafeObservableCollection <Instance>(); _allowedChildren = new List <Type>(); //Strange setup, but we have to ChangeParent before we set to isRoot ChangeParent(ActiveWorld.Active.World); _isRoot = true; Initialize(); }
public Part() : base() { _displayName = "Part"; _icon = "16/brick.png"; _instances = new UISafeObservableCollection <Instance>(); _allowedChildren = new List <Type>(); _allowedChildren.Add(typeof(Instance)); _anchored = true; _collisions = true; _material = Properties.Material.GRASS; parent = ActiveScene.Context.ActiveWorld.World; Initialize(); }
internal Sky(bool flag) : base() { _displayName = "Sky"; _icon = "Legacy/weather_cloudy.png"; _instances = new UISafeObservableCollection <Instance>(); _allowedChildren = new List <Type>(); _isRoot = true; _ambient = new ColorProperty(220, 220, 220, 255); _shadowColor = new ColorProperty(140, 140, 140, 255); _diffuseColor = new ColorProperty(0, 0, 0); _specularColor = new ColorProperty(0, 0, 0); _sunDirection = new Properties.Vector3(0.02f, -.94f, -.03f); _sunDirection.PropertyChanged += SunDirectionPropertyChanged; Initialize(); }