From 1a00fe4ea75924bfe594c4d92073cc95eaa2f32d Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 29 Oct 2014 14:56:55 -0700 Subject: Item AST --- src/ast/npc.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/ast/npc.hpp') diff --git a/src/ast/npc.hpp b/src/ast/npc.hpp index 648b40b..dd323b6 100644 --- a/src/ast/npc.hpp +++ b/src/ast/npc.hpp @@ -24,6 +24,8 @@ #include "../compat/result.hpp" +#include "../io/span.hpp" + #include "../mmo/clif.t.hpp" #include "../mmo/ids.hpp" #include "../mmo/strs.hpp" @@ -35,9 +37,9 @@ namespace tmwa { -namespace npc +namespace ast { -namespace parse +namespace npc { using io::Spanned; @@ -100,7 +102,7 @@ namespace parse { io::LineSpan key_span; // see src/script/parser.hpp - script::parse::ScriptBody body; + ast::script::ScriptBody body; }; struct ScriptFunction : Script { @@ -133,6 +135,6 @@ namespace parse // other Script subclasses elsewhere? (for item and magic scripts) Result> parse_top(io::LineCharReader& in); -} // namespace parse } // namespace npc +} // namespace ast } // namespace tmwa -- cgit v1.2.3-60-g2f50