Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ICHOREOEVENTCALLBACK_H
  8. #define ICHOREOEVENTCALLBACK_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. class CChoreoEvent;
  13. class CChoreoChannel;
  14. class CChoreoActor;
  15. class CChoreoScene;
  16. //-----------------------------------------------------------------------------
  17. // Purpose: During choreo playback, events are triggered by calling back from
  18. // the scene through this interface.
  19. //-----------------------------------------------------------------------------
  20. abstract_class IChoreoEventCallback
  21. {
  22. public:
  23. virtual void StartEvent( float currenttime, CChoreoScene *scene, CChoreoEvent *event ) = 0;
  24. // Only called for events with HasEndTime() == true
  25. virtual void EndEvent( float currenttime, CChoreoScene *scene, CChoreoEvent *event ) = 0;
  26. // Called for events which have been started but aren't done yet
  27. virtual void ProcessEvent( float currenttime, CChoreoScene *scene, CChoreoEvent *event ) = 0;
  28. // Called for events that are part of a pause condition
  29. virtual bool CheckEvent( float currenttime, CChoreoScene *scene, CChoreoEvent *event ) = 0;
  30. };
  31. #endif // ICHOREOEVENTCALLBACK_H