Add logic core skeleton
This commit is contained in:
23
KeyBorad/KeyBorad/LOGIC/Lgc_Core.cpp
Normal file
23
KeyBorad/KeyBorad/LOGIC/Lgc_Core.cpp
Normal 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();
|
||||||
|
}
|
||||||
13
KeyBorad/KeyBorad/LOGIC/Lgc_Core.h
Normal file
13
KeyBorad/KeyBorad/LOGIC/Lgc_Core.h
Normal 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);
|
||||||
Reference in New Issue
Block a user