extends Node2D var player_class = preload("res://player.gd") var deck_input = preload("res://deck_input.gd") var _caching = preload("res://caching.gd") var cards = "1 Arcane Signet 1 Austere Command 1 Bartolomé del Presidio 1 Blade of the Bloodchief 1 Blood Artist 1 Bloodghast 1 Bloodline Necromancer 1 Bloodtracker 1 Bojuka Bog 1 Butcher of Malakir 1 Carmen, Cruel Skymarcher 1 Champion of Dusk 1 Charismatic Conqueror 1 Command Tower 1 Commander's Sphere 1 Cordial Vampire 1 Crossway Troublemakers 1 Cruel Celebrant 1 Damn 1 Drana, Liberator of Malakir 1 Dusk Legion Sergeant 1 Dusk Legion Zealot 1 Elenda, the Dusk Rose 1 Elenda's Hierophant 1 Etchings of the Chosen 1 Exquisite Blood 1 Falkenrath Noble 1 Glass-Cast Heart 1 Heirloom Blade 1 Indulgent Aristocrat 1 Isolated Chapel 1 Kindred Boon 1 Legion Lieutenant 1 March of the Canonized 1 Martyr of Dusk 1 Master of Dark Rites 1 Mavren Fein, Dusk Apostle 1 Mind Stone 1 Myriad Landscape 1 New Blood 1 Nighthawk Scavenger 1 Oathsworn Vampire 1 Olivia's Wrath 1 Order of Sacred Dusk 1 Orzhov Basilica 1 Orzhov Signet 1 Pact of the Serpent 1 Path of Ancestry 1 Patron of the Vein 4 Plains 4 Plains 1 Promise of Aclazotz 1 Radiant Destiny 1 Redemption Choir 1 Return to Dust 1 Rogue's Passage 1 Sanctum Seeker 1 Secluded Courtyard 1 Shineshadow Snarl 1 Sol Ring 1 Sorin, Lord of Innistrad 7 Swamp 6 Swamp 1 Swiftfoot Boots 1 Swords to Plowshares 1 Tainted Field 1 Talisman of Hierarchy 1 Temple of Silence 1 Temple of the False God 1 Timothar, Baron of Bats 1 Twilight Prophet 1 Unclaimed Territory 1 Utter End 1 Vault of the Archangel 1 Village Rites 1 Viscera Seer 1 Voldaren Estate 1 Vona, Butcher of Magan 1 Wayfarer's Bauble 1 Welcoming Vampire 1 Windbrisk Heights 1 Yahenni, Undying Partisan 1 Clavileño, First of the Blessed" func _bulk_callback(cache) -> void: cache.setup() # Called when the node enters the scene tree for the first time. func _ready() -> void: var cache = _caching.new() add_child(cache) if cache.setup() != OK: cache.fetch_done.connect(_bulk_callback.bind(cache)) # TODO: Create 2-4 player instances as children of this tabletop node. var player = player_class.new() add_child(player) move_child(player, 0) cache.get_card_data_from_name("1996 World Champion") var deck = deck_input.new() add_child(deck) deck.add_new_deck(cards, "Blood rites") pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(_delta: float) -> void: pass