6 Commits
Author SHA1 Message Date
Andrew James bb16b93836 move definition of non-templated function to cpp file (#6620) 2023-09-17 13:43:05 +01:00
ephphatha 3fda0586bd Add support for parsing fixed point decimal strings 2023-09-17 10:42:23 +01:00
ephphatha f3de9d6e71 Use dedicated error enum for parsing failures 2023-09-17 10:42:23 +01:00
Gleb Mazovetskiy b28bbd65ad Fix some compilation warnings
```
data_file_test.cpp:37:20: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
   37 |                 if (!result.endOfFile())
      |                    ^
```

```
Source/engine/render/dun_render.cpp:1126:6: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without
 1126 | void RenderTile(const Surface &out, Point position,
```
2023-09-10 10:23:56 +01:00
ephphatha 5f6e5ae9fb Refactor iterator parsing to allow more reuse 2023-08-29 15:17:54 +02:00
ephphathaandGleb Mazovetskiy 32c3316743 Load experience data from file
Also added an iterator based API, though it's not useful for this use-case. Might be nice in the future?

The field/record iterators is single-pass input iterators with shared state.
To avoid rescanning fields unnecessarily parseInt currently can only be called once, it would be possible to make these iterators bidirectional with a bit of extra state (holding onto the start pointer)

Co-authored-by: Gleb Mazovetskiy <[email protected]>
2023-08-24 05:46:44 +02:00