mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-13 13:50:59 +00:00
47 lines
888 B
C
47 lines
888 B
C
|
#pragma once
|
||
|
|
||
|
class DLightTransfer : public DThinker
|
||
|
{
|
||
|
DECLARE_CLASS (DLightTransfer, DThinker)
|
||
|
|
||
|
public:
|
||
|
static const int DEFAULT_STAT = STAT_LIGHTTRANSFER;
|
||
|
void Construct(sector_t *srcSec, int target, bool copyFloor);
|
||
|
void Serialize(FSerializer &arc);
|
||
|
void Tick ();
|
||
|
|
||
|
protected:
|
||
|
void DoTransfer (int level, int target, bool floor);
|
||
|
|
||
|
sector_t *Source;
|
||
|
int TargetTag;
|
||
|
bool CopyFloor;
|
||
|
short LastLight;
|
||
|
};
|
||
|
|
||
|
class DWallLightTransfer : public DThinker
|
||
|
{
|
||
|
enum
|
||
|
{
|
||
|
WLF_SIDE1=1,
|
||
|
WLF_SIDE2=2,
|
||
|
WLF_NOFAKECONTRAST=4
|
||
|
};
|
||
|
|
||
|
DECLARE_CLASS (DWallLightTransfer, DThinker)
|
||
|
public:
|
||
|
static const int DEFAULT_STAT = STAT_LIGHTTRANSFER;
|
||
|
void Construct(sector_t *srcSec, int target, uint8_t flags);
|
||
|
void Serialize(FSerializer &arc);
|
||
|
void Tick ();
|
||
|
|
||
|
protected:
|
||
|
void DoTransfer (short level, int target, uint8_t flags);
|
||
|
|
||
|
sector_t *Source;
|
||
|
int TargetID;
|
||
|
short LastLight;
|
||
|
uint8_t Flags;
|
||
|
};
|
||
|
|