Added steam to the project but deactivated for now

This commit is contained in:
=
2026-04-19 13:04:14 +02:00
parent e6522f2db9
commit 68f973a695
3 changed files with 30 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
using Godot;
using GodotSteam;
public partial class SteamworksHandler : Node
{
public override void _Ready()
{
return;
SteamInitExStatus status = Steam.SteamInitEx(false).Status;
if (status != 0)
{
GD.Print("Steam not initialized!");
return;
}
GD.Print("Steam initialized!");
GD.Print("User: " + Steam.GetPersonaName());
}
public override void _Process(double delta)
{
Steam.RunCallbacks();
}
public override void _ExitTree()
{
Steam.SteamShutdown();
}
}