The International Simutrans Forum

 

Author Topic: Tree builder refactor  (Read 333 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 238
Tree builder refactor
« on: February 20, 2021, 08:45:30 AM »
Just a small-ish refactor - I moved the static functions for building trees and tree desc management from baum_t to a separate tree_builder_t class.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4857
  • Languages: EN, DE, AT
Re: Tree builder refactor
« Reply #1 on: February 20, 2021, 09:05:05 AM »
Why not. Maybe we could move all these desc-handling functions to classes with a unified interface for all desc's?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10544
  • Languages: De,EN,JP
Re: Tree builder refactor
« Reply #2 on: February 20, 2021, 12:18:47 PM »
Indeed, this makes sense.

Offline ceeac

  • Devotee
  • *
  • Posts: 238
Re: Tree builder refactor
« Reply #3 on: February 21, 2021, 07:36:35 PM »
Okay, submitted the patch in r9646.