| 268 | } |
| 269 | |
| 270 | unsigned int InitializeEventList(std::vector<EventSet>& list) |
| 271 | { |
| 272 | unsigned int nodeCount = 0; |
| 273 | |
| 274 | for (const auto& set : list) |
| 275 | { |
| 276 | for (const auto& evt : set.Events) |
| 277 | { |
| 278 | if ((evt.Mode == EventMode::Nodes) && !evt.Data.empty()) |
| 279 | { |
| 280 | g_GameScript->ExecuteString(evt.Data); |
| 281 | nodeCount++; |
| 282 | } |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | return nodeCount; |
| 287 | } |
| 288 | |
| 289 | void InitializeNodeScripts() |
| 290 | { |
no test coverage detected