72 lines
1.4 KiB
C#
72 lines
1.4 KiB
C#
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// D E R E L I C T
|
|
//
|
|
/// // (c) 2003..2024
|
|
|
|
using Godot;
|
|
using System;
|
|
using Godot.Sharp.Extras;
|
|
|
|
[GlobalClass]
|
|
public partial class BattleScreen : ScreenGeneric<BattleScreenDef>
|
|
{
|
|
|
|
static public BattleScreen _ { get; private set; }
|
|
|
|
|
|
//[ExportCategory( "Initialized" )]
|
|
//[Export]
|
|
//public Battle _battle;
|
|
|
|
|
|
|
|
public override string DebugString() => $"{GetType().Name}: {Def.ResourcePath}";
|
|
|
|
public BattleScreen()
|
|
{
|
|
_ = this;
|
|
}
|
|
|
|
public override void _Ready()
|
|
{
|
|
log.info( $"{GetType().Name}._Ready::Begin with Scene {Def.Scene.ResourcePath}" );
|
|
|
|
base._Ready();
|
|
|
|
this.OnReady();
|
|
|
|
Name = $"BattleScreen";
|
|
|
|
log.info( $"Running {GetType().Name} with Scene {Def.Scene.ResourcePath}" );
|
|
|
|
|
|
// @@@ PORT Battles as a concept
|
|
/*
|
|
|
|
var scene = Def.Scene.Instantiate<BattleScene>();
|
|
|
|
AddChild( scene );
|
|
|
|
scene.StartEvent();
|
|
|
|
Callable.From(
|
|
() => {
|
|
var path = Def.BattleDataPath.Replace( "res://", "" );
|
|
var battleData = new res.Ref<cs.BattleData>( path );
|
|
|
|
_battle = Battle.CreateBattle( this, scene, battleData, $"{Def.BattleDataPath}" );
|
|
} ).CallDeferred();
|
|
*/
|
|
|
|
log.info( $"{GetType().Name}._Ready::End with Scene {Def.Scene.ResourcePath}" );
|
|
}
|
|
|
|
public override void _Process( double delta )
|
|
{
|
|
base._Process( delta );
|
|
}
|
|
|
|
|
|
}
|