rj-action-library-cpp/RJTimeLineManager.h

76 lines
1.8 KiB
C
Raw Permalink Normal View History

2024-05-19 15:48:01 +00:00
/* RJTimeLineManager.h */
#ifndef ROKOJORI__TIME_LINE_MANAGER_H
#define ROKOJORI__TIME_LINE_MANAGER_H
2024-08-02 06:21:30 +00:00
#include "./RJGodotHeaders.h"
2024-05-19 15:48:01 +00:00
#include "./RJTimeLine.h"
#include "./RJNetworkNode.h"
2024-08-02 06:21:30 +00:00
2024-05-19 15:48:01 +00:00
class RJTimeLineManager : public RJNetworkNode
{
2024-08-02 06:21:30 +00:00
GDCLASS( RJTimeLineManager, RJNetworkNode );
2024-05-19 15:48:01 +00:00
protected:
static void _bind_methods();
public:
2024-08-02 06:21:30 +00:00
// getTimeLineIndex( Ref<RJTimeLine> timeLine ) : int
2024-05-19 15:48:01 +00:00
GDVIRTUAL1R( int, getTimeLineIndex, Ref<RJTimeLine> );
2024-08-02 06:21:30 +00:00
// getTimeLineSize() : int
2024-05-19 15:48:01 +00:00
GDVIRTUAL0R( int, getTimeLineSize );
2024-08-02 06:21:30 +00:00
// createID() : int
2024-05-19 15:48:01 +00:00
GDVIRTUAL0R( int, createID );
2024-08-02 06:21:30 +00:00
// getLastPosition( int timeLineIndex ) : double
2024-05-19 15:48:01 +00:00
GDVIRTUAL1R( double, getLastPosition, int );
2024-08-02 06:21:30 +00:00
// getPosition( int timeLineIndex ) : double
2024-05-19 15:48:01 +00:00
GDVIRTUAL1R( double, getPosition, int );
2024-08-02 06:21:30 +00:00
// setPosition( int timeLineIndex, double position ) : void
2024-05-19 15:48:01 +00:00
GDVIRTUAL2( setPosition, int, double );
2024-08-02 06:21:30 +00:00
// getSpeed( int timeLineIndex ) : double
2024-05-19 15:48:01 +00:00
GDVIRTUAL1R( double, getSpeed, int );
2024-08-02 06:21:30 +00:00
// setSpeed( int timeLineIndex, double speed ) : void
2024-05-19 15:48:01 +00:00
GDVIRTUAL2( setSpeed, int, double );
2024-08-02 06:21:30 +00:00
// getPlayState( int timeLineIndex ) : bool
2024-05-19 15:48:01 +00:00
GDVIRTUAL1R( bool, getPlayState, int );
2024-08-02 06:21:30 +00:00
// setPlayState( int timeLineIndex, bool playState ) : void
2024-05-19 15:48:01 +00:00
GDVIRTUAL2( setPlayState, int, bool );
2024-08-02 06:21:30 +00:00
// scheduleEvent( int timeLineIndex, double position, int callbackID, bool isPersistent ) : void
2024-05-19 15:48:01 +00:00
GDVIRTUAL4( scheduleEvent, int, double, int, bool );
2024-08-02 06:21:30 +00:00
// scheduleSpan( int timeLineIndex, double startPosition, double endPosition, int callbackID, bool isPersistent ) : void
2024-05-19 15:48:01 +00:00
GDVIRTUAL5( scheduleSpan, int, double, double, int, bool );
2024-08-02 06:21:30 +00:00
// [signal] onEvent( int callbackID ) : void
// [signal] onSpan( int callbackID, int spanType ) : void
2024-05-19 15:48:01 +00:00
2024-08-02 06:21:30 +00:00
// Constructor
2024-05-19 15:48:01 +00:00
RJTimeLineManager();
2024-08-02 06:21:30 +00:00
// Destructor
2024-05-19 15:48:01 +00:00
~RJTimeLineManager();
};
#endif // ROKOJORI__TIME_LINE_MANAGER_H