libtcod / umbra

A libtcod game engine used by a handful of older projects.
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Pull common functionality out of treeburner into umbra #1

Open odiminox opened 1 year ago

odiminox commented 1 year ago

treeburner contains a large collection of utilities and objects that can support the development of any roguelike game. With some treatment of these treeburner classes, the capability of umbra could be expanded into a general rougelike engine/toolkit by refactoring these tools out of treeburner into umbra

HexDecimal commented 1 year ago

What I was doing was working on Umbra and it's sub-projects simultaneously, but this sounds like a better idea. The 3 projects using Umbra all share similar codebases, so it might work better to move the duplicate code to Umbra itself.

odiminox commented 1 year ago

@HexDecimal I presume we want to refactor umbra code into namespaces as I have done on treeburner

odiminox commented 1 year ago

That way treeburner code pulled into Umbra can be easily ported

HexDecimal commented 1 year ago

Yeah. Especially since this is supposed to be included into other projects. All these headers used to have an umbra_ prefix before, but I didn't add a namespace.

I'd probably go with umbra:: for everything. Maybe also umbra::widget::. Not sure about imod, that needs to be unabbreviated.