mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-13 11:38:15 +07:00
fix: set and batch_set component argument should be optional
This commit is contained in:
@@ -144,12 +144,12 @@ local record Evolved
|
||||
has_any: function(entity: Entity, ...: Fragment): boolean
|
||||
|
||||
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)
|
||||
clear: 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_clear: function(...: Query)
|
||||
batch_destroy: function(...: Query)
|
||||
|
||||
Reference in New Issue
Block a user