Exemplo n.º 1
0
Arquivo: Part.cs Projeto: ext0/Flex
        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();
        }
Exemplo n.º 2
0
Arquivo: Part.cs Projeto: ext0/Flex
        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();
        }