コード例 #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();
        }