init
This commit is contained in:
commit
b99855351d
434 changed files with 50357 additions and 0 deletions
33
addons/inkgd/runtime/extra/string_writer.gd
Normal file
33
addons/inkgd/runtime/extra/string_writer.gd
Normal file
|
@ -0,0 +1,33 @@
|
|||
# warning-ignore-all:unused_class_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.
|
||||
# ############################################################################ #
|
||||
|
||||
# Simple replacement of the StringWriter class from the .NET Framework.
|
||||
# It has none of the optimisations of original class and merely wraps
|
||||
# a plain old string.
|
||||
|
||||
|
||||
class_name InkStringWriter
|
||||
|
||||
# ############################################################################ #
|
||||
|
||||
var _internal_string: String = ""
|
||||
|
||||
# ############################################################################ #
|
||||
|
||||
func _init():
|
||||
pass
|
||||
|
||||
# ############################################################################ #
|
||||
|
||||
func write(s: String) -> void:
|
||||
_internal_string += str(s)
|
||||
|
||||
func _to_string() -> String:
|
||||
return _internal_string
|
Loading…
Add table
Add a link
Reference in a new issue