DDraceNetwork Docs
laser_data.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef GAME_CLIENT_LASER_DATA_H
4#define GAME_CLIENT_LASER_DATA_H
5
6#include <base/vmath.h>
7
8struct CNetObj_Laser;
10struct CNetObj_EntityEx;
11
13{
14public:
19 // The rest is only set if m_ExtraInfo is true.
21 int m_Type;
25 // TuneZone is introduced locally
27};
28
29CLaserData ExtractLaserInfo(int NetObjType, const void *pData, class CGameWorld *pGameWorld, const CNetObj_EntityEx *pEntEx);
30CLaserData ExtractLaserInfoDDNet(const CNetObj_DDNetLaser *pLaser, class CGameWorld *pGameWorld);
31
32#endif // GAME_CLIENT_LASER_DATA_H
Definition: gameworld.h:17
Definition: laser_data.h:13
int m_Type
Definition: laser_data.h:21
int m_SwitchNumber
Definition: laser_data.h:22
int m_Owner
Definition: laser_data.h:20
int m_Subtype
Definition: laser_data.h:23
bool m_Predict
Definition: laser_data.h:24
int m_TuneZone
Definition: laser_data.h:26
int m_StartTick
Definition: laser_data.h:17
bool m_ExtraInfo
Definition: laser_data.h:18
vec2 m_To
Definition: laser_data.h:16
vec2 m_From
Definition: laser_data.h:15
CLaserData ExtractLaserInfoDDNet(const CNetObj_DDNetLaser *pLaser, class CGameWorld *pGameWorld)
Definition: laser_data.cpp:62
CLaserData ExtractLaserInfo(int NetObjType, const void *pData, class CGameWorld *pGameWorld, const CNetObj_EntityEx *pEntEx)
Definition: laser_data.cpp:12
Definition: protocol.h:554
Definition: protocol.h:661
Definition: protocol.h:386