Initial Void Bastion 0.20 prototype
This commit is contained in:
commit
7362ca0f02
251 files changed
+29688
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#
|
||||
# © 2024-present https://github.com/cengiz-pz
|
||||
#
|
||||
class_name RewardItem
|
||||
extends RefCounted
|
||||
|
||||
const AMOUNT_PROPERTY := &"amount"
|
||||
const TYPE_PROPERTY := &"type"
|
||||
|
||||
var _data: Dictionary
|
||||
|
||||
|
||||
func _init(a_data: Dictionary):
|
||||
_data = a_data
|
||||
|
||||
|
||||
func get_amount() -> int:
|
||||
return _data[AMOUNT_PROPERTY]
|
||||
|
||||
|
||||
func get_type() -> String:
|
||||
return _data[TYPE_PROPERTY]
|
||||
Reference in new issue
Block a user