1
This commit is contained in:
parent
4fc5ca2865
commit
6dab02a719
4
.gitignore
vendored
4
.gitignore
vendored
@ -30,4 +30,6 @@ x64
|
||||
server/gameserver/.gitignore
|
||||
gameserver.cbp
|
||||
behaviac_generated
|
||||
gcm.cache
|
||||
gcm.cache
|
||||
liba8.a
|
||||
libf8.a
|
@ -51,12 +51,18 @@ aux_source_directory(.
|
||||
SRC_LIST
|
||||
)
|
||||
|
||||
file(GLOB SRC_GRP_LISTENER listener/*.cc listener/*.h)
|
||||
source_group("listener" FILES ${SRC_GRP_LISTENER})
|
||||
|
||||
|
||||
set(EXECUTABLE_OUTPUT_PATH
|
||||
${PROJECT_BINARY_DIR}/../../bin/mymangosd/bin
|
||||
)
|
||||
|
||||
add_executable(
|
||||
mymangosd ${SRC_LIST}
|
||||
mymangosd
|
||||
${SRC_LIST}
|
||||
${SRC_GRP_LISTENER}
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
|
38
server/mymangosd/app.cc
Normal file
38
server/mymangosd/app.cc
Normal file
@ -0,0 +1,38 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include "app.h"
|
||||
|
||||
App::App()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const std::string App::GetPkgName()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
void App::Init()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void App::UnInit()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void App::Update(int delta_time)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool App::HasTask()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void App::DispatchSocketMsg(f8::MsgHdr* hdr)
|
||||
{
|
||||
|
||||
}
|
17
server/mymangosd/app.h
Normal file
17
server/mymangosd/app.h
Normal file
@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <f8/userapp.h>
|
||||
|
||||
class App : public f8::UserApp
|
||||
{
|
||||
A8_DECLARE_SINGLETON(App);
|
||||
public:
|
||||
|
||||
virtual const std::string GetPkgName() override;
|
||||
virtual void Init() override;
|
||||
virtual void UnInit() override;
|
||||
virtual void Update(int delta_time) override;
|
||||
virtual bool HasTask() override;
|
||||
virtual void DispatchSocketMsg(f8::MsgHdr* hdr) override;
|
||||
|
||||
};
|
17
server/mymangosd/listener/gglistener.cc
Normal file
17
server/mymangosd/listener/gglistener.cc
Normal file
@ -0,0 +1,17 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include "gglistener.h"
|
||||
|
||||
GGListener::GGListener()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void GGListener::Init()
|
||||
{
|
||||
}
|
||||
|
||||
void GGListener::UnInit()
|
||||
{
|
||||
|
||||
}
|
10
server/mymangosd/listener/gglistener.h
Normal file
10
server/mymangosd/listener/gglistener.h
Normal file
@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
class GGListener
|
||||
{
|
||||
A8_DECLARE_SINGLETON(GGListener);
|
||||
public:
|
||||
void Init();
|
||||
void UnInit();
|
||||
|
||||
};
|
@ -2,8 +2,9 @@
|
||||
|
||||
#include <f8/app.h>
|
||||
|
||||
#include "app.h"
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
f8::App::Instance()->GetZoneId();
|
||||
return 1;
|
||||
return f8::App::Instance()->Run(argc, argv, App::Instance());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user