Skip to content

Commit dbb2e92

Browse files
authored
fix: default object runner objects no longer run (#14)
1 parent 7992468 commit dbb2e92

File tree

6 files changed

+16
-1
lines changed

6 files changed

+16
-1
lines changed

Source/Ecsact/Public/EcsactAsyncRunner.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ auto UEcsactAsyncRunner::Tick(float DeltaTime) -> void {
1515
ecsact_async_flush_events(evc_c, nullptr);
1616
}
1717
}
18+
19+
auto UEcsactAsyncRunner::GetStatId() const -> TStatId {
20+
RETURN_QUICK_DECLARE_CYCLE_STAT(UEcsactAsyncRunner, STATGROUP_Tickables);
21+
}

Source/Ecsact/Public/EcsactAsyncRunner.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ class UEcsactAsyncRunner : public UEcsactRunner {
1616
class UEcsactUnrealEventsCollector* EventsCollector;
1717

1818
auto Tick(float DeltaTime) -> void override;
19+
auto GetStatId() const -> TStatId override;
1920
};

Source/Ecsact/Public/EcsactRunner.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ auto UEcsactRunner::Tick(float DeltaTime) -> void {
44
}
55

66
auto UEcsactRunner::GetStatId() const -> TStatId {
7-
RETURN_QUICK_DECLARE_CYCLE_STAT(UTickableObject, STATGROUP_Tickables);
7+
RETURN_QUICK_DECLARE_CYCLE_STAT(UEcsactRunner, STATGROUP_Tickables);
8+
}
9+
10+
auto UEcsactRunner::IsTickable() const -> bool {
11+
return !IsTemplate();
812
}

Source/Ecsact/Public/EcsactRunner.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ class UEcsactRunner : public UObject, public FTickableGameObject {
1212
public:
1313
auto Tick(float DeltaTime) -> void override;
1414
auto GetStatId() const -> TStatId override;
15+
auto IsTickable() const -> bool override;
1516
};

Source/Ecsact/Public/EcsactSyncRunner.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ auto UEcsactSyncRunner::Tick(float DeltaTime) -> void {
2626
UE_LOG(Ecsact, Error, TEXT("Ecsact execution failed"));
2727
}
2828
}
29+
30+
auto UEcsactSyncRunner::GetStatId() const -> TStatId {
31+
RETURN_QUICK_DECLARE_CYCLE_STAT(UEcsactSyncRunner, STATGROUP_Tickables);
32+
}

Source/Ecsact/Public/EcsactSyncRunner.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ class UEcsactSyncRunner : public UEcsactRunner {
1616
ecsact_registry_id registry_id = ECSACT_INVALID_ID(registry);
1717

1818
auto Tick(float DeltaTime) -> void override;
19+
auto GetStatId() const -> TStatId override;
1920
};

0 commit comments

Comments
 (0)