| 580 | } |
| 581 | |
| 582 | command_result Plugin::on_state_change(color_ostream &out, state_change_event event) |
| 583 | { |
| 584 | command_result cr = CR_NOT_IMPLEMENTED; |
| 585 | access->lock_add(); |
| 586 | if(state == PS_LOADED && plugin_onstatechange) |
| 587 | { |
| 588 | cr = plugin_onstatechange(out, event); |
| 589 | Lua::Core::Reset(out, "plugin_onstatechange"); |
| 590 | } |
| 591 | access->lock_sub(); |
| 592 | return cr; |
| 593 | } |
| 594 | |
| 595 | command_result Plugin::save_world_data(color_ostream &out) |
| 596 | { |
no test coverage detected