The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ceeac on February 20, 2021, 08:45:30 AM

Title: Tree builder refactor
Post by: ceeac 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.
Title: Re: Tree builder refactor
Post by: Dwachs 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?
Title: Re: Tree builder refactor
Post by: prissi on February 20, 2021, 12:18:47 PM
Indeed, this makes sense.
Title: Re: Tree builder refactor
Post by: ceeac on February 21, 2021, 07:36:35 PM
Okay, submitted the patch in r9646.