在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ketoo/NFrame开源软件地址:https://github.com/ketoo/NFrame开源编程语言:C# 90.8%开源软件介绍:NoahGameFramehttp://www.noahframe.comCopyright ©#####交流QQ群:341159815 What is it?NF is a lightweight, fast, scalable, distributed plugin framework.Greatly inspired by OGRE and Bigworld. Features
FAQIntroductionArchitectureApp Architecture:Server ArchitectureEvent Driver:Get the Sources:git clone https://github.com/ketoo/NoahGameFrame.git or svn checkout https://github.com/ketoo/NoahGameFrame DependenciesSupported Compilers
Build and InstallWindows[MSVC >= 2013]
JAVA ProjectWebSite: https://github.com/NFGameTeam/NFrame-java C# ProjectWebSite: https://github.com/ketoo/NFrame Documents & TutorialLicenseThe NFrame project is currently available under the Apache License. Tutorial:01-Hello world, add a module// -------------------------------------------------------------------------
// @FileName : HelloWorld1.h
// @Author : ketoo
// @Date : 2014-05-01 08:51
// @Module : HelloWorld1
//
// -------------------------------------------------------------------------
#ifndef _NFC_HELLO_WORLD1_H_
#define _NFC_HELLO_WORLD1_H_
#include "NFComm/NFPluginModule/NFIPluginManager.h"
class HelloWorld1
: public NFILogicModule
{
public:
HelloWorld1(NFIPluginManager* p)
{
pPluginManager = p;
}
virtual bool Init();
virtual bool AfterInit();
virtual bool Execute(const float fLasFrametime, const float fStartedTime);
virtual bool BeforeShut();
virtual bool Shut();
protected:
};
#endif
#include "HelloWorld1.h"
bool HelloWorld1::Init()
{
// Use this for initialization
std::cout << "Hello, world1, Init" << std::endl;
return true;
}
bool HelloWorld1::AfterInit()
{
// AfterInit is called after Init
std::cout << "Hello, world1, AfterInit" << std::endl;
return true;
}
bool HelloWorld1::Execute( const float fLasFrametime, const float fStartedTime )
{
// Execute is called once per frame
//std::cout << "Hello, world1, Execute" << std::endl;
return true;
}
bool HelloWorld1::BeforeShut()
{
//before final
std::cout << "Hello, world1, BeforeShut" << std::endl;
return true;
}
bool HelloWorld1::Shut()
{
//final
std::cout << "Hello, world1, Shut" << std::endl;
return true;
}
02-Hello world, test data driver
03-Hello world, test heartbeat and event system
04-Hello actor, test actor model(async event system)
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论