summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/FireworksSerializer.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Overhaul endian handling in ByteBuffer and FastNBT (#5543)Ash2024-11-031-2/+2
| | | | | | | | | | | | | | | * Overhaul endian handling in ByteBuffer and FastNBT Rather than juggling "swapped" and "unswapped" versions of integers, different library functions, #defines, etc., simply always read everything byte-by-byte. This works regardless of host CPU endian, got optimised down to either a normal load or a byteswap on every compiler I tested - only 1 instruction on most CPU architectures. This commit introduces a "Bytes" array type to keep endian-sensitive data seperate from host data, alongside the needed C++ template machinery for it to work seamlessly. This approach is a little bit safer as well since you get length- and type-checking for most callsites. * Remove remaining references to old-style endianness conversion, remove functions themselves. --------- Co-authored-by: Alexander Harkness <me@bearbin.net>
* Removed all Printf-family functions from StringUtils.Mattes D2023-05-161-8/+4
| | | | | Replaced them with fmt::format calls, including changes to the format strings. Also changed the format strings to use FMT_STRING, so that the format is checked compile-time against the arguments. Also fixed code-style violations already present in the code.
* zlib -> libdeflate (#5085)Tiger Wang2021-01-111-2/+2
| | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-2/+3
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-1/+1
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-191-1/+1
|
* Make -Werror disabling file onlytycho2015-05-191-1/+1
| | | | Ad fix a load of warnings
* Replace &*[0] accesses with .data()Tiger Wang2014-10-211-4/+4
|
* Basic style fixes.madmaxoft2014-07-171-2/+2
|
* Normalized comments.madmaxoft2014-07-171-2/+2
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Fixed size_t in FireworksSerializer.Mattes D2014-05-091-2/+2
|
* Build fixes after the last size_t batch.Mattes D2014-05-091-2/+2
|
* Rewrote redstone powering to use power levelsTiger Wang2014-04-151-1/+1
|
* Fixed a crash in firework rockets.madmaxoft2014-03-171-2/+8
| | | | Fixes #816.
* Fixed xofts issuesTycho2014-03-101-0/+4
|
* Fixed alignment issues in Fireworks SerializerTycho2014-03-101-7/+7
|
* Fixed MSVC2008 compilation.madmaxoft2014-03-101-4/+4
|
* Hexified coloursTiger Wang2014-03-091-16/+16
|
* Fixed data length issuesTiger Wang2014-03-091-2/+3
|
* Demonstrated issues with GetDataLength()Tiger Wang2014-03-091-5/+7
|
* Fixed compileTiger Wang2014-02-271-2/+1
|
* Implemented ballistic missiles (fireworks)Tiger Wang2014-02-271-0/+250
+ Added fireworks