init
This commit is contained in:
commit
b99855351d
434 changed files with 50357 additions and 0 deletions
31
addons/inkgd/runtime/extra/story_error.gd
Normal file
31
addons/inkgd/runtime/extra/story_error.gd
Normal file
|
@ -0,0 +1,31 @@
|
|||
# ############################################################################ #
|
||||
# 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.
|
||||
# ############################################################################ #
|
||||
|
||||
# An object tha represents a "Story Error", which is equivalent in certain
|
||||
# context to upstream's StoryException.
|
||||
|
||||
class_name StoryError
|
||||
|
||||
# ############################################################################ #
|
||||
# Properties
|
||||
# ############################################################################ #
|
||||
|
||||
var message: String
|
||||
var use_end_line_number: bool
|
||||
var metadata # StoryErrorMetadata | null
|
||||
|
||||
# ############################################################################ #
|
||||
# Initialization
|
||||
# ############################################################################ #
|
||||
|
||||
@warning_ignore("shadowed_variable")
|
||||
func _init(message: String, use_end_line_number: bool, metadata):
|
||||
self.message = message
|
||||
self.use_end_line_number = use_end_line_number
|
||||
self.metadata = metadata
|
Loading…
Add table
Add a link
Reference in a new issue