Serious-Engine/Sources/EntitiesMP/Light_tables.h

94 lines
6.8 KiB
C
Raw Normal View History

2016-03-11 14:57:17 +01:00
/*
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
*/
EP_ENUMBEG(LightType)
EP_ENUMVALUE(LT_POINT, "Point light"),
EP_ENUMVALUE(LT_AMBIENT, "Ambient light"),
EP_ENUMVALUE(LT_STRONG_AMBIENT, "Strong ambient light"),
EP_ENUMVALUE(LT_DIRECTIONAL, "Directional light"),
EP_ENUMVALUE(LT_STRONG_POINT, "Strong point light"),
EP_ENUMEND(LightType);
EP_ENUMBEG(LensFlareType)
EP_ENUMVALUE(LFT_NONE, "None"),
EP_ENUMVALUE(LFT_STANDARD, "Standard"),
EP_ENUMVALUE(LFT_STANDARD_REFLECTIONS, "Standard reflections"),
EP_ENUMVALUE(LFT_YELLOW_STAR_RED_RING, "Yellow star with red ring"),
EP_ENUMVALUE(LFT_WHITE_GLOW_STAR_RED_RING, "White glow star with red ring"),
EP_ENUMVALUE(LFT_WHITE_GLOW_STAR, "White glow star"),
EP_ENUMVALUE(LFT_WHITE_STAR_RED_RING_STREAKS, "White star with red ring and streaks"),
EP_ENUMVALUE(LFT_WHITE_STAR_RED_REFLECTIONS, "White star with red reflections"),
EP_ENUMVALUE(LFT_BLUE_STAR_BLUE_REFLECTIONS, "Blue star with blue reflections"),
EP_ENUMVALUE(LFT_PV_SPACE_SHIP_WINDOW_FLARE, "Pyramid valley space ship window flare"),
EP_ENUMVALUE(LFT_WHITE_GLOW_STAR_RED_RING_FAR, "Yellow star with red ring far"),
EP_ENUMVALUE(LFT_WHITE_GLOW_FAR, "White glow far"),
EP_ENUMVALUE(LFT_WHITE_GLOW_STAR_NG, "White glow star no glare"),
EP_ENUMEND(LensFlareType);
#define ENTITYCLASS CLight
CEntityProperty CLight_properties[] = {
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x000000c8<<8)+2, offsetof(CLight, m_colColor), "Color", 'C', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x000000c8<<8)+9, offsetof(CLight, m_colAmbient), "Directional ambient", 'E', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_RANGE, NULL, (0x000000c8<<8)+1, offsetof(CLight, m_rFallOffRange), "Fall-off", 'F', 0x7F0000FFUL, EPROPF_HIDEINPERSPECTIVE ),
CEntityProperty(CEntityProperty::EPT_RANGE, NULL, (0x000000c8<<8)+4, offsetof(CLight, m_rHotSpotRange), "Hot-spot", 'H', 0x7F0000FFUL, EPROPF_HIDEINPERSPECTIVE ),
CEntityProperty(CEntityProperty::EPT_ILLUMINATIONTYPE, NULL, (0x000000c8<<8)+7, offsetof(CLight, m_itIllumination), "Polygon illumination", 'I', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_ENUM, &LightType_enum, (0x000000c8<<8)+8, offsetof(CLight, m_ltType), "Type", 'Y', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000c8<<8)+10, offsetof(CLight, m_strDescription), "", 0, 0, 0),
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000c8<<8)+11, offsetof(CLight, m_strName), "Name", 'N', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000c8<<8)+12, offsetof(CLight, m_bDarkLight), "Dark light", 'A', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000c8<<8)+13, offsetof(CLight, m_fNearClip), "Clip near", 0, 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000c8<<8)+14, offsetof(CLight, m_fFarClip), "Clip far", 0, 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000c8<<8)+15, offsetof(CLight, m_bSubstractSectorAmbient), "Substract sector ambient", 'S', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000c8<<8)+16, offsetof(CLight, m_bRenderAsSmallLight), "Render as small", 'R', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_ENUM, &LensFlareType_enum, (0x000000c8<<8)+17, offsetof(CLight, m_lftLensFlare), "Lens flare", 'L', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000c8<<8)+18, offsetof(CLight, m_bBackground), "Background", 'B', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000c8<<8)+19, offsetof(CLight, m_bLensFlareOnly), "Lens flare only", 'O', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x000000c8<<8)+20, offsetof(CLight, m_fnmLightAnimation), "Light animation file", 0, 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_ANIMATION, NULL, (0x000000c8<<8)+21, offsetof(CLight, m_iLightAnimation), "Light animation", 0, 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000c8<<8)+25, offsetof(CLight, m_tmOffsetPhase), "Light animation offset", 0, 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_ANIMOBJECT, NULL, (0x000000c8<<8)+22, offsetof(CLight, m_aoLightAnimation), "", 0, 0, 0),
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000c8<<8)+24, offsetof(CLight, m_bTargetable), "Targetable", 0, 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000c8<<8)+26, offsetof(CLight, m_bDynamic), "Dynamic", 0, 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000c8<<8)+27, offsetof(CLight, m_bDiffusion), "Diffusion", 'D', 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x000000c8<<8)+30, offsetof(CLight, m_fnmAmbientLightAnimation), "Ambient light animation file", 0, 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_ANIMATION, NULL, (0x000000c8<<8)+31, offsetof(CLight, m_iAmbientLightAnimation), "Ambient light animation", 0, 0x7F0000FFUL, 0),
CEntityProperty(CEntityProperty::EPT_ANIMOBJECT, NULL, (0x000000c8<<8)+32, offsetof(CLight, m_aoAmbientLightAnimation), "", 0, 0, 0),
};
#define CLight_propertiesct ARRAYCOUNT(CLight_properties)
CEntityComponent CLight_components[] = {
#define MODEL_LIGHT_SOURCE ((0x000000c8<<8)+1)
CEntityComponent(ECT_MODEL, MODEL_LIGHT_SOURCE, "EFNM" "Models\\Editor\\LightSource.mdl"),
#define TEXTURE_POINT_LIGHT ((0x000000c8<<8)+2)
CEntityComponent(ECT_TEXTURE, TEXTURE_POINT_LIGHT, "EFNM" "Models\\Editor\\PointLight.tex"),
#define TEXTURE_AMBIENT_LIGHT ((0x000000c8<<8)+3)
CEntityComponent(ECT_TEXTURE, TEXTURE_AMBIENT_LIGHT, "EFNM" "Models\\Editor\\AmbientLight.tex"),
#define TEXTURE_REAL_AMBIENT_LIGHT ((0x000000c8<<8)+4)
CEntityComponent(ECT_TEXTURE, TEXTURE_REAL_AMBIENT_LIGHT, "EFNM" "Models\\Editor\\RealAmbientLight.tex"),
#define MODEL_SPOT_LIGHT ((0x000000c8<<8)+5)
CEntityComponent(ECT_MODEL, MODEL_SPOT_LIGHT, "EFNM" "Models\\Editor\\SpotLight.mdl"),
#define TEXTURE_SPOT_LIGHT ((0x000000c8<<8)+6)
CEntityComponent(ECT_TEXTURE, TEXTURE_SPOT_LIGHT, "EFNM" "Models\\Editor\\SpotLight.tex"),
};
#define CLight_componentsct ARRAYCOUNT(CLight_components)
CEventHandlerEntry CLight_handlers[] = {
{1, -1, CEntity::pEventHandler(&CLight::
#line 324 "D:/SE1_GPL/Sources/EntitiesMP/Light.es"
Main),DEBUGSTRING("CLight::Main")},
};
#define CLight_handlersct ARRAYCOUNT(CLight_handlers)
CEntity *CLight_New(void) { return new CLight; };
void CLight_OnInitClass(void);
void CLight_OnEndClass(void);
void CLight_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
void CLight_OnWorldEnd(CWorld *pwo) {};
void CLight_OnWorldInit(CWorld *pwo) {};
void CLight_OnWorldTick(CWorld *pwo) {};
void CLight_OnWorldRender(CWorld *pwo) {};
ENTITY_CLASSDEFINITION(CLight, CEntity, "Light", "Thumbnails\\Light.tbn", 0x000000c8);
DECLARE_CTFILENAME(_fnmCLight_tbn, "Thumbnails\\Light.tbn");