Implement hash proc for Godot types
This commit is contained in:
parent
4eb771e9be
commit
76de026b4f
15 changed files with 139 additions and 38 deletions
|
|
@ -1,5 +1,7 @@
|
|||
# Copyright 2018 Xored Software, Inc.
|
||||
|
||||
import hashes
|
||||
|
||||
import internal.godotinternaltypes, internal.godotnodepaths,
|
||||
internal.godotstrings
|
||||
|
||||
|
|
@ -32,6 +34,9 @@ proc `$`*(self: NodePath): string {.inline.} =
|
|||
result = $s
|
||||
s.deinit()
|
||||
|
||||
proc hash*(self: NodePath): Hash {.inline.} =
|
||||
($self).hash()
|
||||
|
||||
proc isAbsolute*(self: NodePath): bool {.inline.} =
|
||||
self.path.isAbsolute()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue