summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-02-24 11:41:53 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-02-26 21:18:09 +0000
commit593361ba81764dae93c02bd5bc4ee238db55aac1 (patch)
tree90d295bb82a1534fd750c27401f29652ecb95061 /src/net
parenta5d1cc6d7e37c4ca45b2dc390074e01f9a9589b7 (diff)
downloadmana-593361ba81764dae93c02bd5bc4ee238db55aac1.tar.gz
mana-593361ba81764dae93c02bd5bc4ee238db55aac1.tar.bz2
mana-593361ba81764dae93c02bd5bc4ee238db55aac1.tar.xz
mana-593361ba81764dae93c02bd5bc4ee238db55aac1.zip
Use ResourceRef for all resource types
All ResourceManager functions that load resources now return respective ResourceRef values, which helps to make sure resources are properly cleaned up. The Sound class was cleaned up and now also allows SoundEffect resources to be unloaded. The Animation class now keeps its ImageSet loaded only as long as necessary. Previously, SimpleAnimation and ParticleEmitter would keep the ImageSet loaded indefinitely by never decreasing its reference count. Reduced duplicated animation loading code between SimpleAnimation and ParticleEmitter.
Diffstat (limited to 'src/net')
0 files changed, 0 insertions, 0 deletions