mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-22 02:24:17 +00:00
67a5765c9f
Conflicts: src/engine/server/server.cpp src/engine/shared/config_variables.h src/game/client/components/camera.cpp src/game/client/components/camera.h src/game/editor/ed_editor.cpp src/game/editor/ed_layer_tiles.cpp Signed-off-by: GreYFoXGTi <GreYFoXGTi@GMaiL.CoM>
31 lines
822 B
C++
31 lines
822 B
C++
#ifndef GAME_CLIENT_COMPONENTS_CAMERA_H
|
|
#define GAME_CLIENT_COMPONENTS_CAMERA_H
|
|
#include <base/vmath.h>
|
|
#include <game/client/component.h>
|
|
#include <game/client/gameclient.h>
|
|
|
|
class CCamera : public CComponent
|
|
{
|
|
|
|
static void ConZoomPlus(IConsole::IResult *pResult, void *pUserData, int ClientID);
|
|
static void ConZoomMinus(IConsole::IResult *pResult, void *pUserData, int ClientID);
|
|
static void ConZoomReset(IConsole::IResult *pResult, void *pUserData, int ClientID);
|
|
static void ConCameraFree(IConsole::IResult *pResult, void *pUserData, int ClientID);
|
|
|
|
CGameClient::CSnapState::CCharacterInfo* getCharacter(int Id);
|
|
|
|
public:
|
|
vec2 m_Center;
|
|
float m_Zoom;
|
|
bool m_WasSpectator;
|
|
bool m_Free;
|
|
int m_Follow;
|
|
|
|
CCamera();
|
|
virtual void OnRender();
|
|
virtual void OnConsoleInit();
|
|
bool SetFollow(int Id);
|
|
};
|
|
|
|
#endif
|