diff --git a/plugins/eventful.cpp b/plugins/eventful.cpp index 9c8819a48..1b9d228bc 100644 --- a/plugins/eventful.cpp +++ b/plugins/eventful.cpp @@ -8,6 +8,7 @@ #include "VTableInterpose.h" #include "df/building.h" +#include "df/building_furnacest.h" #include "df/building_workshopst.h" #include "df/construction.h" #include "df/item.h" @@ -91,8 +92,8 @@ static bool is_lua_hook(const std::string &name) /* * Hooks */ -static void handle_fillsidebar(color_ostream &out,df::building_workshopst*,bool *call_native){}; -static void handle_postfillsidebar(color_ostream &out,df::building_workshopst*){}; +static void handle_fillsidebar(color_ostream &out,df::building_actual*,bool *call_native){}; +static void handle_postfillsidebar(color_ostream &out,df::building_actual*){}; static void handle_reaction_done(color_ostream &out,df::reaction*, df::reaction_product_itemst*, df::unit *unit, std::vector *in_items,std::vector *in_reag , std::vector *out_items,bool *call_native){}; @@ -102,8 +103,8 @@ static void handle_projitem_cm(color_ostream &out,df::proj_itemst*){}; static void handle_projunit_ci(color_ostream &out,df::proj_unitst*,bool){}; static void handle_projunit_cm(color_ostream &out,df::proj_unitst*){}; -DEFINE_LUA_EVENT_2(onWorkshopFillSidebarMenu, handle_fillsidebar, df::building_workshopst*,bool* ); -DEFINE_LUA_EVENT_1(postWorkshopFillSidebarMenu, handle_postfillsidebar, df::building_workshopst*); +DEFINE_LUA_EVENT_2(onWorkshopFillSidebarMenu, handle_fillsidebar, df::building_actual*,bool* ); +DEFINE_LUA_EVENT_1(postWorkshopFillSidebarMenu, handle_postfillsidebar, df::building_actual*); DEFINE_LUA_EVENT_7(onReactionComplete, handle_reaction_done,df::reaction*, df::reaction_product_itemst*, df::unit *, std::vector *,std::vector *,std::vector *,bool *); DEFINE_LUA_EVENT_5(onItemContaminateWound, handle_contaminate_wound, df::item_actual*,df::unit* , df::unit_wound* , uint8_t , int16_t );