metaforce/Runtime/GameGlobalObjects.hpp

106 lines
4.2 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#define USE_DOWNCAST_TWEAKS 1
#if USE_DOWNCAST_TWEAKS
#include "Runtime/MP1/Tweaks/CTweakAutoMapper.hpp"
#include "Runtime/MP1/Tweaks/CTweakBall.hpp"
#include "Runtime/MP1/Tweaks/CTweakGame.hpp"
#include "Runtime/MP1/Tweaks/CTweakGui.hpp"
#include "Runtime/MP1/Tweaks/CTweakGui.hpp"
#include "Runtime/MP1/Tweaks/CTweakGuiColors.hpp"
#include "Runtime/MP1/Tweaks/CTweakGunRes.hpp"
#include "Runtime/MP1/Tweaks/CTweakParticle.hpp"
#include "Runtime/MP1/Tweaks/CTweakPlayer.hpp"
#include "Runtime/MP1/Tweaks/CTweakPlayerControl.hpp"
#include "Runtime/MP1/Tweaks/CTweakPlayerGun.hpp"
#include "Runtime/MP1/Tweaks/CTweakPlayerRes.hpp"
#include "Runtime/MP1/Tweaks/CTweakSlideShow.hpp"
#include "Runtime/MP1/Tweaks/CTweakTargeting.hpp"
#include "Runtime/MP1/Tweaks/CTweakGuiColors.hpp"
#include "Runtime/MP1/Tweaks/CTweakTargeting.hpp"
#else
#include "Runtime/Tweaks/ITweakAutoMapper.hpp"
#include "Runtime/Tweaks/ITweakBall.hpp"
#include "Runtime/Tweaks/ITweakGame.hpp"
#include "Runtime/Tweaks/ITweakGui.hpp"
#include "Runtime/Tweaks/ITweakGui.hpp"
#include "Runtime/Tweaks/ITweakGuiColors.hpp"
#include "Runtime/Tweaks/ITweakGunRes.hpp"
#include "Runtime/Tweaks/ITweakParticle.hpp"
#include "Runtime/Tweaks/ITweakPlayer.hpp"
#include "Runtime/Tweaks/ITweakPlayerControl.hpp"
#include "Runtime/Tweaks/ITweakPlayerGun.hpp"
#include "Runtime/Tweaks/ITweakPlayerRes.hpp"
#include "Runtime/Tweaks/ITweakSlideShow.hpp"
#include "Runtime/Tweaks/ITweakTargeting.hpp"
#endif
2015-08-18 05:54:43 +00:00
2020-02-16 08:10:08 +00:00
#include "Runtime/CTextureCache.hpp"
2021-04-10 08:42:06 +00:00
namespace metaforce {
2016-09-17 06:40:45 +00:00
extern class IMain* g_Main;
2018-12-08 05:30:43 +00:00
namespace MP1 {
extern class CGameArchitectureSupport* g_archSupport;
2016-08-15 20:58:07 +00:00
}
2015-08-18 05:54:43 +00:00
extern class CMemoryCardSys* g_MemoryCardSys;
2016-04-15 03:02:21 +00:00
extern class IFactory* g_ResFactory;
2015-08-18 05:54:43 +00:00
extern class CSimplePool* g_SimplePool;
extern class CCharacterFactoryBuilder* g_CharFactoryBuilder;
extern class CAiFuncMap* g_AiFuncMap;
extern class CGameState* g_GameState;
2015-08-27 00:23:46 +00:00
extern class CInGameTweakManagerBase* g_TweakManager;
2015-08-18 05:54:43 +00:00
extern class CBooRenderer* g_Renderer;
2016-12-14 22:56:59 +00:00
extern class CStringTable* g_MainStringTable;
extern class CTextureCache* g_TextureCache;
2017-02-18 02:19:50 +00:00
extern class CInputGenerator* g_InputGenerator;
extern class CStateManager* g_StateManager;
2015-08-18 05:54:43 +00:00
#if USE_DOWNCAST_TWEAKS
using ITweakGame = metaforce::MP1::CTweakGame;
using ITweakPlayer = metaforce::MP1::CTweakPlayer;
using ITweakPlayerControl = metaforce::MP1::CTweakPlayerControl;
using ITweakPlayerGun = metaforce::MP1::CTweakPlayerGun;
using ITweakGunRes = metaforce::MP1::CTweakGunRes;
using ITweakAutoMapper = metaforce::MP1::CTweakAutoMapper;
using ITweakGui = metaforce::MP1::CTweakGui;
using ITweakSlideShow = metaforce::MP1::CTweakSlideShow;
using ITweakParticle = metaforce::MP1::CTweakParticle;
using ITweakBall = metaforce::MP1::CTweakBall;
using ITweakGuiColors = metaforce::MP1::CTweakGuiColors;
using ITweakPlayerRes = metaforce::MP1::CTweakPlayerRes;
using ITweakTargeting = metaforce::MP1::CTweakTargeting;
#else
using ITweakGame = metaforce::Tweaks::ITweakGame;
using ITweakPlayer = metaforce::Tweaks::ITweakPlayer;
using ITweakPlayerControl = metaforce::Tweaks::ITweakPlayerControl;
using ITweakPlayerGun = metaforce::Tweaks::ITweakPlayerGun;
using ITweakGunRes = metaforce::Tweaks::ITweakGunRes;
using ITweakAutoMapper = metaforce::Tweaks::ITweakAutoMapper;
using ITweakGui = metaforce::Tweaks::ITweakGui;
using ITweakSlideShow = metaforce::Tweaks::ITweakSlideShow;
using ITweakParticle = metaforce::Tweaks::ITweakParticle;
using ITweakBall = metaforce::Tweaks::ITweakBall;
using ITweakGuiColors = metaforce::Tweaks::ITweakGuiColors;
using ITweakPlayerRes = metaforce::Tweaks::ITweakPlayerRes;
using ITweakTargeting = metaforce::Tweaks::ITweakTargeting;
#endif
2017-01-26 10:06:18 +00:00
2018-12-08 05:30:43 +00:00
extern ITweakGame* g_tweakGame;
2017-01-26 10:06:18 +00:00
extern ITweakPlayer* g_tweakPlayer;
extern ITweakPlayerControl* g_tweakPlayerControl;
extern ITweakPlayerControl* g_tweakPlayerControlAlt;
extern ITweakPlayerControl* g_currentPlayerControl;
extern ITweakPlayerGun* g_tweakPlayerGun;
extern ITweakGunRes* g_tweakGunRes;
extern ITweakPlayerRes* g_tweakPlayerRes;
extern ITweakTargeting* g_tweakTargeting;
extern ITweakAutoMapper* g_tweakAutoMapper;
2017-01-26 10:06:18 +00:00
extern ITweakGui* g_tweakGui;
extern ITweakSlideShow* g_tweakSlideShow;
extern ITweakParticle* g_tweakParticle;
extern ITweakBall* g_tweakBall;
extern ITweakGuiColors* g_tweakGuiColors;
2015-08-28 00:11:31 +00:00
2021-04-10 08:42:06 +00:00
} // namespace metaforce