mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 18:30:27 +01:00
87 lines
3.5 KiB
C++
87 lines
3.5 KiB
C++
/*
|
|
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
*/
|
|
|
|
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
|
|
#include "StdH.h"
|
|
|
|
#include <EntitiesMP/BackgroundViewer.h>
|
|
#include <EntitiesMP/BackgroundViewer_tables.h>
|
|
void CBackgroundViewer::SetDefaultProperties(void) {
|
|
m_bActive = TRUE ;
|
|
m_penWorldSettingsController = NULL;
|
|
CMarker::SetDefaultProperties();
|
|
}
|
|
|
|
#line 25 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
BOOL CBackgroundViewer::IsTargetValid(SLONG slPropertyOffset,CEntity * penTarget)
|
|
#line 26 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
{
|
|
#line 27 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
if(penTarget == NULL )
|
|
#line 28 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
{
|
|
#line 29 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
return FALSE ;
|
|
#line 30 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
}
|
|
#line 32 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
if(slPropertyOffset == offsetof (CBackgroundViewer , m_penWorldSettingsController ))
|
|
#line 33 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
{
|
|
#line 34 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
return IsOfClass (penTarget , "WorldSettingsController");
|
|
#line 35 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
}
|
|
#line 36 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
return TRUE ;
|
|
#line 37 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
}
|
|
|
|
#line 39 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
BOOL CBackgroundViewer::HandleEvent(const CEntityEvent & ee) {
|
|
#line 40 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
if(ee . ee_slEvent == EVENTCODE_EStart ){
|
|
#line 41 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
GetWorld () -> SetBackgroundViewer (this );
|
|
#line 42 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
return TRUE ;
|
|
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
}
|
|
#line 45 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
return FALSE ;
|
|
#line 46 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
}
|
|
BOOL CBackgroundViewer::
|
|
#line 49 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
Main(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT STATE_CBackgroundViewer_Main
|
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBackgroundViewer::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
InitAsEditorModel ();
|
|
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
SetCollisionFlags (ECF_IMMATERIAL );
|
|
#line 56 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
SetModel (MODEL_MARKER );
|
|
#line 57 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
SetModelMainTexture (TEXTURE_MARKER );
|
|
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
if(m_strName == "Marker"){
|
|
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
m_strName = "Background Viewer";
|
|
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
}
|
|
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
if(m_bActive ){
|
|
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
GetWorld () -> SetBackgroundViewer (this );
|
|
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
}
|
|
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
Return(STATE_CURRENT,EVoid());
|
|
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
return TRUE; ASSERT(FALSE); return TRUE;}; |