added replace argument to resmgr.loadbatch()
This commit is contained in:
parent
c5a8432da4
commit
7bca9910fb
1 changed files with 2 additions and 2 deletions
|
@ -25,11 +25,11 @@ func unloadres(resname:String) -> void:
|
|||
return
|
||||
resources.erase(resname)
|
||||
|
||||
func loadbatch(batch:Dictionary) -> void:
|
||||
func loadbatch(batch:Dictionary,replace:bool = false) -> void:
|
||||
if batch == {}:
|
||||
Logger.error("resmgr","Loading a batch failed: Batch is empty")
|
||||
for i in batch:
|
||||
loadres(i,batch[i])
|
||||
loadres(i,batch[i],replace)
|
||||
|
||||
func unloadbatch(batch:Array) -> void:
|
||||
if batch == []:
|
||||
|
|
Loading…
Reference in a new issue