Skip to content

Commit f442804

Browse files
committed
All collections now inherit from Managed for type casting compatibility and auto reference counting
1 parent 9e7db6e commit f442804

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

resourceDatabase.rdb

0 Bytes
Binary file not shown.

scripts/Game/Collections/ESE_DynamicQueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Code example:
1717
@endcode
1818
*/
1919

20-
class ESE_DynamicQueue<Class T>
20+
class ESE_DynamicQueue<Class T>: Managed
2121
{
2222
ref array<T> Raw = {};
2323
T nullValue = null;

scripts/Game/Collections/ESE_DynamicStack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Code example:
1818
@endcode
1919
*/
2020

21-
class ESE_DynamicStack<Class T>
21+
class ESE_DynamicStack<Class T>: Managed
2222
{
2323
ref array<T> Raw = {};
2424
T nullValue = null;

scripts/Game/Collections/ESE_Queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Code example:
3030
@endcode
3131
*/
3232

33-
class ESE_Queue<Class T>
33+
class ESE_Queue<Class T>: Managed
3434
{
3535
ref array<T> Raw = {};
3636
int MaxSize;

scripts/Game/Collections/ESE_Stack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Code example:
2929
@endcode
3030
*/
3131

32-
class ESE_Stack<Class T>
32+
class ESE_Stack<Class T>: Managed
3333
{
3434
ref array<T> Raw = {};
3535
int MaxSize;

scripts/Game/ESE_Entities.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class ESE_Entities
8181
// Checks if given entity can be picked up as an inventory item
8282
static bool CanPickUpEntity(IEntity ent)
8383
{
84+
// consider replacing some of this with SCR_Global.FindActionsManagerComponent()
8485
ActionsManagerComponent actionsManager = ActionsManagerComponent.Cast(ent.FindComponent(ActionsManagerComponent));
8586
if (!actionsManager)
8687
return false;

0 commit comments

Comments
 (0)