예제 #1
0
파일: Part.cs 프로젝트: 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();
        }
예제 #2
0
파일: Part.cs 프로젝트: 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();
        }