| 151 | int CPhraseDialog::Priority() { return data()->m_iPriority; } |
| 152 | |
| 153 | void CPhraseDialog::Load(shared_str dialog_id) |
| 154 | { |
| 155 | m_DialogId = dialog_id; |
| 156 | |
| 157 | inherited_shared::load_shared(m_DialogId, NULL); |
| 158 | |
| 159 | if (GetForceReload()) |
| 160 | { |
| 161 | if (data()->m_sInitFunction.size()) |
| 162 | { |
| 163 | data()->m_PhraseGraph.clear(); |
| 164 | |
| 165 | luabind::functor<void> lua_function; |
| 166 | bool functor_exists = ai().script_engine().functor(data()->m_sInitFunction.c_str(), lua_function); |
| 167 | ASSERT_FMT_DBG(functor_exists, "!![%s] Cannot find precondition [%s]", __FUNCTION__, data()->m_sInitFunction.c_str()); |
| 168 | if (functor_exists) |
| 169 | lua_function(this); |
| 170 | } |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | #include "script_engine.h" |
| 175 | #include "ai_space.h" |
no test coverage detected