mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "V8Tree/Instance.h"
|
||||
#include "Util/RunStateOwner.h"
|
||||
#include "Util/G3DCore.h"
|
||||
|
||||
LOGGROUP(ISteppedLifetime)
|
||||
|
||||
namespace RBX {
|
||||
|
||||
class IStepped
|
||||
{
|
||||
public:
|
||||
enum StepType
|
||||
{
|
||||
StepType_Default,
|
||||
StepType_HighPriority,
|
||||
StepType_Render,
|
||||
};
|
||||
|
||||
private:
|
||||
StepType stepType;
|
||||
rbx::signals::scoped_connection steppedConnection;
|
||||
|
||||
protected:
|
||||
// call this inside onServiceProvider
|
||||
void onServiceProviderIStepped(ServiceProvider* oldProvider, ServiceProvider* newProvider);
|
||||
|
||||
/*implement*/ virtual void onStepped(const Stepped& event) = 0;
|
||||
|
||||
void stopStepping() {
|
||||
steppedConnection.disconnect();
|
||||
}
|
||||
|
||||
public:
|
||||
IStepped(StepType stepType = StepType_Default): stepType(stepType) {}
|
||||
virtual ~IStepped() {}
|
||||
};
|
||||
} // namespace RBX
|
||||
Reference in New Issue
Block a user