BuildingCoder.CmdCropToRoom.BumpRoomIndex C# (CSharp) Method

BumpRoomIndex() static private method

Increment and return the current room index. Every call to this method increments the current room index by one. If it exceeds the number of rooms in the model, loop back to zero.
static private BumpRoomIndex ( int room_count ) : int
room_count int Number of rooms in the model.
return int
        static int BumpRoomIndex( int room_count )
        {
            ++_i;

              if( _i >= room_count )
              {
            _i = 0;
              }
              return _i;
        }