summaryrefslogtreecommitdiff
path: root/game/shared/ichoreoeventcallback.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/ichoreoeventcallback.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/ichoreoeventcallback.h')
-rw-r--r--game/shared/ichoreoeventcallback.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/game/shared/ichoreoeventcallback.h b/game/shared/ichoreoeventcallback.h
new file mode 100644
index 0000000..69b98c6
--- /dev/null
+++ b/game/shared/ichoreoeventcallback.h
@@ -0,0 +1,34 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#ifndef ICHOREOEVENTCALLBACK_H
+#define ICHOREOEVENTCALLBACK_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+class CChoreoEvent;
+class CChoreoChannel;
+class CChoreoActor;
+class CChoreoScene;
+
+//-----------------------------------------------------------------------------
+// Purpose: During choreo playback, events are triggered by calling back from
+// the scene through this interface.
+//-----------------------------------------------------------------------------
+abstract_class IChoreoEventCallback
+{
+public:
+ virtual void StartEvent( float currenttime, CChoreoScene *scene, CChoreoEvent *event ) = 0;
+ // Only called for events with HasEndTime() == true
+ virtual void EndEvent( float currenttime, CChoreoScene *scene, CChoreoEvent *event ) = 0;
+ // Called for events which have been started but aren't done yet
+ virtual void ProcessEvent( float currenttime, CChoreoScene *scene, CChoreoEvent *event ) = 0;
+ // Called for events that are part of a pause condition
+ virtual bool CheckEvent( float currenttime, CChoreoScene *scene, CChoreoEvent *event ) = 0;
+};
+
+#endif // ICHOREOEVENTCALLBACK_H