Updated AppContext
Added get_known_streamers() helper function.
This commit is contained in:
parent
48fe26459f
commit
92551b289b
1 changed files with 6 additions and 0 deletions
|
|
@ -9,3 +9,9 @@ func _init() -> void:
|
||||||
chatters = DbSet.new(Chatter)
|
chatters = DbSet.new(Chatter)
|
||||||
itch_apps = DbSet.new(ItchIOAppData)
|
itch_apps = DbSet.new(ItchIOAppData)
|
||||||
steam_apps = DbSet.new(SteamAppData)
|
steam_apps = DbSet.new(SteamAppData)
|
||||||
|
|
||||||
|
func get_known_streamers() -> Array[Chatter]:
|
||||||
|
var known: Array[Chatter] = []
|
||||||
|
for chatter: Chatter in chatters.find_many(Condition.new().equal("is_streamer", true)):
|
||||||
|
known.append(chatter)
|
||||||
|
return known
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue