示例#1
0
        public void CutGroup(MyCubeGrid grid, GridLinkTypeEnum groupType)
        {
            if (grid == null)
                return;

            CopyGroup(grid, groupType);

            if (MyFakes.ENABLE_COPY_GROUP)
            {
                var group = MyCubeGridGroups.Static.GetGroups(groupType).GetGroupNodes(grid);
                foreach (var node in group)
                {
                    node.SendGridCloseRequest();
                }
            }
            else
            {
                grid.SendGridCloseRequest();
            }
        }
示例#2
0
        public void CutGrid(MyCubeGrid grid)
        {
            if (grid == null)
                return;

            CopyGrid(grid);

            grid.SendGridCloseRequest();
        }