EssentialsPlugin.Utility.GridGroup.UpdateGroup C# (CSharp) Method

UpdateGroup() public method

public UpdateGroup ( ) : void
return void
        public void UpdateGroup()
        {
            HashSet<MyCubeGrid> newGrids = new HashSet<MyCubeGrid>();

            foreach (var newGrid in MyCubeGridGroups.Static.GetGroups( _linkType ).GetGroupNodes( _parent ))
                newGrids.Add( newGrid );

            if (_grids != newGrids)
            {
                _grids = newGrids;

                //populate our internal lists
                ComputeParent();
                ComputeCubeBlocks();
                ComputeFatBlocks();
                ComputeSmallOwners();
                ComputeBigOwners();
            }
        }