mirror of
https://github.com/FOSS-Supremacy/OpenLiberty.git
synced 2025-04-28 20:07:57 +03:00
Use safer typed dictionaries
This commit is contained in:
parent
819b871e87
commit
afd55cd8bc
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var assets: Dictionary
|
||||
var assets: Dictionary[String, DirEntry] = {}
|
||||
var mutex := Mutex.new()
|
||||
|
||||
func _ready() -> void:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var items: Dictionary
|
||||
var items: Dictionary[int, ItemDef]
|
||||
var itemchilds: Array[TDFX]
|
||||
var placements: Array[ItemPlacement]
|
||||
var collisions: Array[ColFile]
|
||||
|
|
|
@ -34,7 +34,7 @@ var mesh: ArrayMesh:
|
|||
return ArrayMesh.new()
|
||||
var morph_t := morph_targets[0]
|
||||
var st := SurfaceTool.new()
|
||||
var surfaces: Dictionary
|
||||
var surfaces: Dictionary[int, Array] = {}
|
||||
# Split tris by their material ID
|
||||
for tri in tris:
|
||||
var mat_id := tri.material_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue