Reorganize variables

This commit is contained in:
JeremyStar™ 2024-05-14 00:59:44 +02:00
parent dfe788ef20
commit 06b83a0589
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -16,28 +16,23 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
extends Node
# Presencode version
const version: int = 1
const version_float: float = float(version)
# CORE
@onready var core: Core = get_node("/root/CORE")
@onready var logger: CoreLoggerInstance = core.logger.get_instance("src/presenloader.gd", self)
# Presentation zip/dir info
var path: String = ""
var is_file: bool = true
var manifest: Dictionary = {}
var entrypoint: Script = null
var entrypoint_node: PresencodeEntrypoint = null
var communication: PresencodeCommunication = PresencodeCommunication.new(core, self)
# Access methods
var reader: ZIPReader = ZIPReader.new()
var diraccess: DirAccess = null
# Communication
var communication: PresencodeCommunication = PresencodeCommunication.new(core, self)
func _ready() -> void:
# Register cleanup hook
core.register_cleanup_hook(func() -> void: queue_free())