From 0f3cba6fcea0ffd511dfe3275d57a5b9e69be5be Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Mon, 10 Jul 2023 02:10:20 +0100 Subject: build a barely-tested Burger plugin --- src/Plugins/Food/Common/FoodDef.cpp | 17 +++++++++-------- src/Plugins/Food/Common/FoodDef.h | 4 ++-- src/Plugins/Food/Common/FoodPlugin.cpp | 1 + src/Plugins/Food/Common/FoodPlugin.h | 4 ++-- src/Plugins/Food/Common/Trash.cpp | 17 +++++++++-------- src/Plugins/Food/Common/Trash.h | 2 +- 6 files changed, 24 insertions(+), 21 deletions(-) (limited to 'src/Plugins/Food/Common') diff --git a/src/Plugins/Food/Common/FoodDef.cpp b/src/Plugins/Food/Common/FoodDef.cpp index dfc84ad..994fe5a 100644 --- a/src/Plugins/Food/Common/FoodDef.cpp +++ b/src/Plugins/Food/Common/FoodDef.cpp @@ -1,14 +1,15 @@ +#include "StdAfx.h" #include "FoodDef.h" #include "../../Common/StdFoodInfoDialog.h" #include "Trash.h" -#include "T2DateTime.h" -#include "T2People.h" -#include "T2SoundPlayer.h" -#include "T2TemplatePluginList.h" -#include "T2Tenant.h" -#include "T2TowerDoc.h" -#include "T2TowerMainView.h" -#include "UT2Utils.h" +#include "../../../T2DLL/T2DateTime.h" +#include "../../../T2DLL/T2People.h" +#include "../../../T2DLL/T2SoundPlayer.h" +#include "../../../T2DLL/T2TemplatePluginList.h" +#include "../../../T2DLL/T2Tenant.h" +#include "../../../T2TowerDoc.h" +#include "../../../T2TowerMainView.h" +#include "../../../T2DLL/UT2Utils.h" #ifdef _DEBUG #define new DEBUG_NEW diff --git a/src/Plugins/Food/Common/FoodDef.h b/src/Plugins/Food/Common/FoodDef.h index f425270..67b86bf 100644 --- a/src/Plugins/Food/Common/FoodDef.h +++ b/src/Plugins/Food/Common/FoodDef.h @@ -1,6 +1,6 @@ #pragma once -#include "common.h" -#include "T2TenantDef.h" +#include "../../../common.h" +#include "../../../T2DLL/T2TenantDef.h" class FoodDef : public T2TenantDef { public: diff --git a/src/Plugins/Food/Common/FoodPlugin.cpp b/src/Plugins/Food/Common/FoodPlugin.cpp index 22e72fe..e0390fd 100644 --- a/src/Plugins/Food/Common/FoodPlugin.cpp +++ b/src/Plugins/Food/Common/FoodPlugin.cpp @@ -1,3 +1,4 @@ +#include "StdAfx.h" #include "FoodPlugin.h" #ifdef _DEBUG diff --git a/src/Plugins/Food/Common/FoodPlugin.h b/src/Plugins/Food/Common/FoodPlugin.h index 5cd0a5a..78e1e6b 100644 --- a/src/Plugins/Food/Common/FoodPlugin.h +++ b/src/Plugins/Food/Common/FoodPlugin.h @@ -1,6 +1,6 @@ #pragma once -#include "common.h" -#include "T2TenantPlugin.h" +#include "../../../common.h" +#include "../../../T2DLL/T2TenantPlugin.h" class FoodPlugin : public T2TenantPlugin { public: diff --git a/src/Plugins/Food/Common/Trash.cpp b/src/Plugins/Food/Common/Trash.cpp index 15e7c6c..b6f2230 100644 --- a/src/Plugins/Food/Common/Trash.cpp +++ b/src/Plugins/Food/Common/Trash.cpp @@ -1,11 +1,12 @@ // actual name unknown -#include "T2EquipPtrList.h" -#include "T2People.h" -#include "T2RegistedTenantDB.h" -#include "T2RouteNavigator.h" -#include "T2Tenant.h" -#include "T2TowerDoc.h" -#include "T2TowerMessage.h" +#include "StdAfx.h" +#include "../../../T2DLL/T2EquipPtrList.h" +#include "../../../T2DLL/T2People.h" +#include "../../../T2DLL/T2RegistedTenantDB.h" +#include "../../../T2DLL/T2RouteNavigator.h" +#include "../../../T2DLL/T2Tenant.h" +#include "../../../T2TowerDoc.h" +#include "../../../T2DLL/T2TowerMessage.h" #include "Trash.h" void TakeOutTrash(T2TowerDoc *inDoc, T2Tenant *inTenant, unsigned int inTime) { @@ -95,7 +96,7 @@ T2EquipPtrList *GetTrashFacilities(T2TowerDoc *inDoc, T2Tenant *inTenant) { T2RegistedTenantDB *theDB = inDoc->GetRegistedTenantDB(); if (theDB) { theList = theDB->GetList(kTenantRegistID2); - inTenant->SetRelatedTenant(theList); + inTenant->SetRelatedTenantList(theList); } } diff --git a/src/Plugins/Food/Common/Trash.h b/src/Plugins/Food/Common/Trash.h index 59b7fdd..e2bcfcd 100644 --- a/src/Plugins/Food/Common/Trash.h +++ b/src/Plugins/Food/Common/Trash.h @@ -1,5 +1,5 @@ #pragma once -#include "common.h" +#include "../../../common.h" void TakeOutTrash(T2TowerDoc *inDoc, T2Tenant *inTenant, unsigned int inTime); T2Tenant *SelectTrashFacility(T2TowerDoc *inDoc, T2Tenant *inTenant, T2People *inPeople); -- cgit v1.2.3