Serious-Engine/Sources/EntitiesMP/MovingBrushMarker.es
Ryan C. Gordon 1a2ccb8f50 Merge github.com:Croteam-Official/Serious-Engine
Conflicts:
	Sources/Ecc/Parser.cpp
	Sources/Ecc/Scanner.cpp
	Sources/Engine/Base/Scanner.cpp
	Sources/Engine/GameAgent/GameAgent.cpp
	Sources/Engine/Graphics/Gfx_wrapper.h
	Sources/Engine/Network/Network.cpp
	Sources/Engine/Sound/SoundDecoder.h
	Sources/Engine/Templates/HashTableTemplate.cpp
	Sources/Engine/Terrain/Terrain.h
	Sources/EntitiesMP/ParticleCloudsHolder.es
	Sources/EntitiesMP/ParticleCloudsMarker.es
	Sources/SeriousSam/CDCheck.h
	Sources/SeriousSam/Menu.cpp
	Sources/SeriousSam/MenuGadgets.cpp
	Sources/SeriousSam/SeriousSam.cpp
	Sources/SeriousSam/SplashScreen.cpp
	Sources/SeriousSam/StdH.cpp
	Sources/SeriousSam/StdH.h
	Sources/Shaders/StdH.cpp
2016-04-02 23:56:12 -04:00

93 lines
3.1 KiB
C++

/* Copyright (c) 2002-2012 Croteam Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as published by
the Free Software Foundation
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
102
%{
#include "EntitiesMP/StdH/StdH.h"
%}
uses "EntitiesMP/Marker";
class CMovingBrushMarker: CMarker {
name "Moving Brush Marker";
thumbnail "Thumbnails\\MovingBrushMarker.tbn";
properties:
1 BOOL m_bInverseRotate "Inverse Rotate" 'R' = FALSE,
2 FLOAT m_fSpeed "Speed" 'S' = -1.0f,
3 FLOAT m_fWaitTime "Wait time" 'W' = -1.0f,
4 BOOL m_bStopMoving "Stop moving" 'O' = FALSE,
6 enum BoolEType m_betMoveOnTouch "Move on touch" 'M' = BET_IGNORE,
7 FLOAT m_fBlockDamage "Block damage" 'D' = -1.0f,
8 FLOAT m_tmBankingRotation "Banking rotation speed" = -1.0f,
9 BOOL m_bBankingClockwise "Banking rotation clockwise" = TRUE,
14 BOOL m_bNoRotation "Don't use marker orientation" = FALSE,
// send event on marker
10 enum EventEType m_eetMarkerEvent "Marker Event - Type" 'J' = EET_IGNORE, // type of event to send
11 CEntityPointer m_penMarkerEvent "Marker Event - Target" 'K', // target to send event to
// send event on touch
16 enum EventEType m_eetTouchEvent "Touch Event - Type" 'U' = EET_IGNORE, // type of event to send
17 CEntityPointer m_penTouchEvent "Touch Event - Target" 'I', // target to send event to
// sound target
20 CEntityPointer m_penSoundStart "Sound start entity" 'Q', // sound start entity
21 CEntityPointer m_penSoundStop "Sound stop entity" 'Z', // sound stop entity
22 CEntityPointer m_penSoundFollow "Sound follow entity" 'F', // sound follow entity
components:
1 model MODEL_MARKER "Models\\Editor\\MovingBrushMarker.mdl",
2 texture TEXTURE_MARKER "Models\\Editor\\GravityMarker.tex"
functions:
/* Check if entity can drop marker for making linked route. */
BOOL DropsMarker(CTFileName &fnmMarkerClass, CTString &strTargetProperty) const {
fnmMarkerClass = CTFILENAME("Classes\\MovingBrushMarker.ecl");
strTargetProperty = "Target";
return TRUE;
}
// returns bytes of memory used by this object
SLONG GetUsedMemory(void)
{
return( sizeof(CMovingBrushMarker) - sizeof(CMarker) + CMarker::GetUsedMemory());
}
procedures:
Main()
{
InitAsEditorModel();
SetPhysicsFlags(EPF_MODEL_IMMATERIAL);
SetCollisionFlags(ECF_IMMATERIAL);
// set appearance
SetModel(MODEL_MARKER);
SetModelMainTexture(TEXTURE_MARKER);
return;
}
};