Add logic core skeleton

This commit is contained in:
2026-04-11 08:38:22 +08:00
parent ed75b23ab7
commit 9f182fa13f
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#include "LOGIC/Lgc_Core.h"
void Lgc_Core_Init(Lgc_Core* p_Core)
{
if (p_Core == nullptr)
{
return;
}
p_Core->State = Lgc_State();
Lgc_Session_Init(&p_Core->Session);
}
void Lgc_Core_Close(Lgc_Core* p_Core)
{
if (p_Core == nullptr)
{
return;
}
Lgc_Session_Close(&p_Core->Session);
p_Core->State = Lgc_State();
}

View File

@@ -0,0 +1,13 @@
#pragma once
#include "LOGIC/Lgc_Session.h"
#include "LOGIC/Lgc_State.h"
struct Lgc_Core
{
Lgc_State State;
Lgc_Session Session;
};
void Lgc_Core_Init(Lgc_Core* p_Core);
void Lgc_Core_Close(Lgc_Core* p_Core);