Adding log.gd

This commit is contained in:
Dan Baker 2024-05-02 09:36:31 +01:00
parent eb32d6614e
commit 4522259397
547 changed files with 46844 additions and 0 deletions

View file

@ -0,0 +1,8 @@
class_name City
extends Node
func name() -> String:
return ""
func location() -> String:
return ""

View file

@ -0,0 +1,22 @@
# example class with inner classes
class_name CustomClass
extends RefCounted
# an inner class
class InnerClassA extends Node:
var x
# an inner class inherits form another inner class
class InnerClassB extends InnerClassA:
var y
# an inner class
class InnerClassC:
func foo() -> String:
return "foo"
class InnerClassD:
class InnerInnerClassA:
var x

View file

@ -0,0 +1,8 @@
class_name GeneratedPersonTest
extends GdUnitTestSuite
# TestSuite generated from",
const __source = "res://addons/gdUnit4/test/resources/core/Person.gd"
func test_name():
assert_that(Person.new().name()).is_equal("Hoschi")

View file

@ -0,0 +1,15 @@
class_name Person
extends Resource
func name() -> String:
return "Hoschi"
func last_name() -> String:
return "Horst"
func age() -> int:
return 42
func street() -> String:
return "Route 66"

View file

@ -0,0 +1,6 @@
class_name Udo
extends Person
func _ready():
pass # Replace with function body.

View file

@ -0,0 +1,28 @@
using Godot;
namespace Example.Test.Resources
{
public partial class TestPerson
{
public TestPerson(string firstName, string lastName)
{
FirstName = firstName;
LastName = lastName;
}
public string FirstName { get; }
public string LastName { get; }
public string FullName => FirstName + " " + LastName;
public string FullName2() => FirstName + " " + LastName;
public string FullName3()
{
return FirstName + " " + LastName;
}
}
}