mirror of
https://github.com/RYGhub/the-cold-night.git
synced 2024-11-21 20:24:20 +00:00
🔧 Add utility static methods to Ownership
This commit is contained in:
parent
3e56b51c9b
commit
edc036941f
1 changed files with 9 additions and 0 deletions
|
@ -1,4 +1,13 @@
|
|||
extends Node
|
||||
class_name Ownership
|
||||
|
||||
|
||||
var entity_owner: Node = null
|
||||
|
||||
|
||||
static func get_value(first) -> Node:
|
||||
var first_node = first.get_node("Ownership")
|
||||
var first_alliance = null
|
||||
if first_node != null:
|
||||
first_alliance = first_node.alliance
|
||||
return first_alliance
|
||||
|
|
Loading…
Reference in a new issue