From c482e420bcf447073ffe3ff8a106a0561e0baadd Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 10 Jan 2015 17:21:56 -0800 Subject: Use generated config for char --- src/high/extract_mmo.cpp | 5 +++++ src/high/extract_mmo.hpp | 1 + 2 files changed, 6 insertions(+) (limited to 'src/high') 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 -- cgit v1.2.3-70-g09d2