35 lines
683 B
C#
35 lines
683 B
C#
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// D E R E L I C T
|
|
//
|
|
/// // (c) 2003..2025
|
|
|
|
using Godot;
|
|
using Godot.Sharp.Extras;
|
|
using System;
|
|
|
|
[GlobalClass]
|
|
public partial class SimpleScreen : ScreenGeneric<SimpleScreenDef>
|
|
{
|
|
|
|
public override string DebugString() => $"{GetType().Name}(base): {Def.ResourcePath}";
|
|
|
|
public override void _Ready()
|
|
{
|
|
base._Ready();
|
|
|
|
this.OnReady();
|
|
|
|
Name = $"SimpleScreen";
|
|
|
|
log.info( $"Running SimpleScreen with Scene {Def.Scene.ResourcePath}" );
|
|
|
|
var scene = Def.Scene.Instantiate<ScreenScene>();
|
|
|
|
AddChild( scene );
|
|
|
|
scene.StartEvent();
|
|
}
|
|
|
|
}
|