Figments-of-the-Night/addons/inkgd/runtime/extra/try_get_result.gd
Gerard Gascón b99855351d init
2025-04-24 17:23:34 +02:00

25 lines
762 B
GDScript

# warning-ignore-all:shadowed_variable
# ############################################################################ #
# Copyright © 2015-2021 inkle Ltd.
# Copyright © 2019-2022 Frédéric Maquin <fred@ephread.com>
# All Rights Reserved
#
# This file is part of inkgd.
# inkgd is licensed under the terms of the MIT license.
# ############################################################################ #
extends RefCounted
class_name InkTryGetResult
# ############################################################################ #
var exists: bool = false # Bool
var result = null # Variant
# ############################################################################ #
func _init(exists: bool, result):
self.exists = exists
self.result = result