diff options
Diffstat (limited to 'src/high')
-rw-r--r-- | src/high/extract_mmo.cpp | 5 | ||||
-rw-r--r-- | src/high/extract_mmo.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/high/extract_mmo.cpp b/src/high/extract_mmo.cpp index dae6a3b..ab4290d 100644 --- a/src/high/extract_mmo.cpp +++ b/src/high/extract_mmo.cpp @@ -92,4 +92,9 @@ bool impl_extract(XString str, NpcEvent *ev) XString mid; return extract(str, record<':'>(&ev->npc, &mid, &ev->label)) && !mid; } + +bool impl_extract(XString str, Point *p) +{ + return extract(str, record<','>(&p->map_, &p->x, &p->y)); +} } // namespace tmwa diff --git a/src/high/extract_mmo.hpp b/src/high/extract_mmo.hpp index 5fcd06f..f374658 100644 --- a/src/high/extract_mmo.hpp +++ b/src/high/extract_mmo.hpp @@ -29,4 +29,5 @@ bool impl_extract(XString str, MapName *m); bool impl_extract(XString str, CharName *out); bool impl_extract(XString str, NpcEvent *ev); +bool impl_extract(XString str, Point *p); } // namespace tmwa |