ko4life-net / ko

Open source development of the game Knight Online. This is a reversed engineered old version of the game aiming to replicate the nostalgic experience we all once had <3
MIT License
54 stars 21 forks source link

Extract common functionality into N3Utils header. #218

Closed stevewgr closed 5 months ago

stevewgr commented 5 months ago

Description

This PR introduces N3Utils shared header only file in order to reuse simple functions across all projects. This with the desclaimer that we shouldn't add there things that are not part of the STL (Standard Library), unless all projects are using a thirdparty library, then it makes sense adding it there, but ideally not.

I made this change now, because of the upcoming PRs requires additional shared functions that will be added later and also to make it easier to maintain moving forward.

stevewgr commented 5 months ago

Build passing: https://github.com/ko4life-net/ko/actions/runs/8862809597/job/24336180230

Merging.