fix: set and batch_set component argument should be optional

This commit is contained in:
p0sel0k
2025-11-04 21:57:00 +03:00
parent f1ba9ab909
commit cfd68767cf

View File

@@ -144,12 +144,12 @@ local record Evolved
has_any: function(entity: Entity, ...: Fragment): boolean has_any: function(entity: Entity, ...: Fragment): boolean
get: function(entity: Entity, ...: Fragment): Component... get: function(entity: Entity, ...: Fragment): Component...
set: function<T>(entity: Entity, fragment: Fragment, component: T) set: function<T>(entity: Entity, fragment: Fragment, component?: T)
remove: function(entity: Entity, ...: Fragment) remove: function(entity: Entity, ...: Fragment)
clear: function(...: Entity) clear: function(...: Entity)
destroy: function(...: Entity) destroy: function(...: Entity)
batch_set: function<T>(query: Query, fragment: Fragment, component: T) batch_set: function<T>(query: Query, fragment: Fragment, component?: T)
batch_remove: function(query: Query, ...: Fragment) batch_remove: function(query: Query, ...: Fragment)
batch_clear: function(...: Query) batch_clear: function(...: Query)
batch_destroy: function(...: Query) batch_destroy: function(...: Query)