]> git.lizzy.rs Git - dragonfireclient.git/commit
Refactor texture overrides and add new features (#9600)
authorHugues Ross <hugues.ross@gmail.com>
Tue, 14 Apr 2020 18:41:29 +0000 (14:41 -0400)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2020 18:41:29 +0000 (20:41 +0200)
commit5cf6318117edcae6bf30d829d9e9dd9dbf1d4bf7
treede590965f9f1cf68a4b6ee7ca802aaa5c0b987ee
parent7e21b3cd4883eb8b9eb7e9ca49e50f6f0c7bc0d6
Refactor texture overrides and add new features (#9600)

* Refactor texture overrides, and add new features:

- Texture overrides can support multiple targets in one line
- Texture override files can have comment lines
- Item images/wield images can be overridden

* Formatting changes

* Address soime feedback

- Pass vectors by const reference
- Log syntax errors as warnings
- Remove 'C' prefix from TextureOverrideSource

* Simplify override target checks with an inline helper function

* make linter happy

* Apply feedback suggestions

Co-Authored-By: rubenwardy <rw@rubenwardy.com>
* Remove remaining != 0 checks

* Update copyright notice

Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
doc/texture_packs.txt
src/CMakeLists.txt
src/client/client.cpp
src/itemdef.cpp
src/itemdef.h
src/nodedef.cpp
src/nodedef.h
src/server.cpp
src/texture_override.cpp [new file with mode: 0644]
src/texture_override.h [new file with mode: 0644]
util/travis/clang-format-whitelist.txt