-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
158 additions
and
1,312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
#include "./GlobalLogicDriver.h" | ||
|
||
void XYY_GlobalLogicDriver::init() | ||
void XYY_GlobalLogicDriver::init(XYY_SceneContent* sc) | ||
{ | ||
// game init | ||
|
||
if(_initFunc) (*initFunc)(sc); | ||
} | ||
|
||
void XYY_GlobalLogicDriver::run(XYY_SceneContent * sc) | ||
{ | ||
// game running | ||
if(_runFunc) (*runFunc)(sc); | ||
} | ||
|
||
void XYY_GlobalLogicDriver::setInitFunc(void (*initFunc)(XYY_SceneContent* sc)) | ||
{ | ||
this->_initFunc = true; | ||
this->initFunc = initFunc; | ||
} | ||
|
||
void XYY_GlobalLogicDriver::setRunFunc(void (*runFunc)(XYY_SceneContent* sc)) | ||
{ | ||
this->_runFunc = true; | ||
this->runFunc = runFunc; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
#pragma once | ||
|
||
#include <vector> | ||
#include <map> | ||
#include "../Driver/LocalDriver/LocalDriver.h" | ||
#include "../Driver/LocalDriver/LocalRendDriver.h" | ||
#include "../Driver/LocalDriver/LocalLightDriver.h" | ||
|
||
|
||
|
||
class __declspec(dllexport) XYY_Element | ||
{ | ||
public: | ||
unsigned int type; // 元素的种类编号 定义为: 0:灯光 1:普通物体 2:其他(天空盒等) | ||
// std::vector<XYY_LocalDriver *> ld; // 该元素所拥有的局部驱动 定义为: 0:渲染 1:物理 2:动画 | ||
|
||
|
||
std::string id = "0"; // 元素标识器 | ||
|
||
// unsigned int id; // 元素的id 唯一标识一个元素 | ||
|
||
|
||
|
||
|
||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.