aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/ichoreoeventcallback.h
blob: 69b98c6a1f39769e8552870a6d76a6dd9b527ecd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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