mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
- fixed FLineTraceData scripting definition
https://forum.zdoom.org/viewtopic.php?t=67795
This commit is contained in:
parent
b9d4ce052b
commit
f46e80e2b4
3 changed files with 18 additions and 13 deletions
|
@ -47,6 +47,7 @@
|
|||
#include "gstrings.h"
|
||||
#include "g_levellocals.h"
|
||||
#include "p_checkposition.h"
|
||||
#include "p_linetracedata.h"
|
||||
#include "v_font.h"
|
||||
#include "menu/menu.h"
|
||||
#include "teaminfo.h"
|
||||
|
@ -903,6 +904,9 @@ void InitThingdef()
|
|||
frp->Size = sizeof(FRailParams);
|
||||
frp->Align = alignof(FRailParams);
|
||||
|
||||
auto fltd = NewStruct("FLineTraceData", nullptr);
|
||||
fltd->Size = sizeof(FLineTraceData);
|
||||
fltd->Align = alignof(FLineTraceData);
|
||||
|
||||
FieldTable.Clear();
|
||||
if (FieldTable.Size() == 0)
|
||||
|
|
|
@ -1957,6 +1957,7 @@ DEFINE_FIELD_X(FLineTraceData, FLineTraceData, HitSector);
|
|||
DEFINE_FIELD_X(FLineTraceData, FLineTraceData, Hit3DFloor);
|
||||
DEFINE_FIELD_X(FLineTraceData, FLineTraceData, HitTexture);
|
||||
DEFINE_FIELD_X(FLineTraceData, FLineTraceData, HitLocation);
|
||||
DEFINE_FIELD_X(FLineTraceData, FLineTraceData, HitDir);
|
||||
DEFINE_FIELD_X(FLineTraceData, FLineTraceData, Distance);
|
||||
DEFINE_FIELD_X(FLineTraceData, FLineTraceData, NumPortals);
|
||||
DEFINE_FIELD_X(FLineTraceData, FLineTraceData, LineSide);
|
||||
|
|
|
@ -46,19 +46,19 @@ struct FLineTraceData
|
|||
TRACE_HasHitSky
|
||||
};
|
||||
|
||||
Actor HitActor;
|
||||
Line HitLine;
|
||||
Sector HitSector;
|
||||
F3DFloor Hit3DFloor;
|
||||
TextureID HitTexture;
|
||||
Vector3 HitLocation;
|
||||
Vector3 HitDir;
|
||||
double Distance;
|
||||
int NumPortals;
|
||||
int LineSide;
|
||||
int LinePart;
|
||||
int SectorPlane;
|
||||
int HitType;
|
||||
native Actor HitActor;
|
||||
native Line HitLine;
|
||||
native Sector HitSector;
|
||||
native F3DFloor Hit3DFloor;
|
||||
native TextureID HitTexture;
|
||||
native Vector3 HitLocation;
|
||||
native Vector3 HitDir;
|
||||
native double Distance;
|
||||
native int NumPortals;
|
||||
native int LineSide;
|
||||
native int LinePart;
|
||||
native int SectorPlane;
|
||||
native int HitType;
|
||||
}
|
||||
|
||||
struct LinkContext
|
||||
|
|
Loading…
Reference in a new issue