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 AdSize
|
||||
extends RefCounted
|
||||
|
||||
const WIDTH_PROPERTY := &"width"
|
||||
const HEIGHT_PROPERTY := &"height"
|
||||
|
||||
var _data: Dictionary
|
||||
|
||||
|
||||
func _init(a_data: Dictionary):
|
||||
_data = a_data if a_data else {}
|
||||
|
||||
|
||||
func get_width() -> int:
|
||||
return _data[WIDTH_PROPERTY] if _data.has(WIDTH_PROPERTY) else 0
|
||||
|
||||
|
||||
func get_height() -> int:
|
||||
return _data[HEIGHT_PROPERTY] if _data.has(HEIGHT_PROPERTY) else 0
|
||||
Reference in new issue
Block a user