BuildingCoder.CmdCropToRoom.BumpRoomIndex C# (CSharp) 메소드

BumpRoomIndex() 정적인 개인적인 메소드

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.
리턴 int
        static int BumpRoomIndex( int room_count )
        {
            ++_i;

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