Reorganize variables
This commit is contained in:
parent
dfe788ef20
commit
06b83a0589
1 changed files with 2 additions and 7 deletions
|
@ -16,28 +16,23 @@
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
# Presencode version
|
|
||||||
const version: int = 1
|
const version: int = 1
|
||||||
const version_float: float = float(version)
|
const version_float: float = float(version)
|
||||||
|
|
||||||
# CORE
|
|
||||||
@onready var core: Core = get_node("/root/CORE")
|
@onready var core: Core = get_node("/root/CORE")
|
||||||
@onready var logger: CoreLoggerInstance = core.logger.get_instance("src/presenloader.gd", self)
|
@onready var logger: CoreLoggerInstance = core.logger.get_instance("src/presenloader.gd", self)
|
||||||
|
|
||||||
# Presentation zip/dir info
|
|
||||||
var path: String = ""
|
var path: String = ""
|
||||||
var is_file: bool = true
|
var is_file: bool = true
|
||||||
var manifest: Dictionary = {}
|
var manifest: Dictionary = {}
|
||||||
|
|
||||||
var entrypoint: Script = null
|
var entrypoint: Script = null
|
||||||
var entrypoint_node: PresencodeEntrypoint = null
|
var entrypoint_node: PresencodeEntrypoint = null
|
||||||
|
var communication: PresencodeCommunication = PresencodeCommunication.new(core, self)
|
||||||
|
|
||||||
# Access methods
|
|
||||||
var reader: ZIPReader = ZIPReader.new()
|
var reader: ZIPReader = ZIPReader.new()
|
||||||
var diraccess: DirAccess = null
|
var diraccess: DirAccess = null
|
||||||
|
|
||||||
# Communication
|
|
||||||
var communication: PresencodeCommunication = PresencodeCommunication.new(core, self)
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
# Register cleanup hook
|
# Register cleanup hook
|
||||||
core.register_cleanup_hook(func() -> void: queue_free())
|
core.register_cleanup_hook(func() -> void: queue_free())
|
||||||
|
|
Loading…
Reference in a new issue