tresinformal / drakkar

The tresinformal video game called 'Drakkar'
GNU General Public License v3.0
11 stars 4 forks source link

Implement << operator for sound_type #508

Closed janclod closed 2 years ago

janclod commented 2 years ago

The current sound_type class can not be streamed to output. This should be possible.

  #define FIX_ISSUE_508
  #ifdef FIX_ISSUE_508
  // operator<<
  {
    std::stringstream s;
    const sound_type st = sound_type::shoot;
    s << st;
  }
  {
    const sound_type st = sound_type::shoot;
    std::cout << st;
  }
  #endif // FIX_ISSUE_508