vE5li / korangar

A next-gen Ragnarok Online client
MIT License
147 stars 33 forks source link

Use a KD-Tree to query static light sources. #103

Closed hasenbanck closed 3 weeks ago

hasenbanck commented 3 weeks ago

I re-used the already present "ObjectSet" to also serve the light sources. Maybe we should re-work it? In the end there are two kind of objects it can hold: Static objects on the map and static light sources of the map. I needed to implment Default for the ObjectSet, because I couldn't implement Default on the keys.