1 / 17
文档名称:

Automatic Function Exporting.doc

格式:doc   页数:17
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

Automatic Function Exporting.doc

上传人:janny 2011/5/28 文件大小:0 KB

下载得到文件列表

Automatic Function Exporting.doc

文档介绍

文档介绍:FuBi: Automatic Function Exporting
for Scripting working
By Scott Bilas
scott@
/~scottb/gdc
Abstract
Much has been written about scripting engines – how to build the parser, how to design the virtual instruction set, and so on. And likewise, much has been written working – how to handle latency, how to pack up data efficiently, and how to pipe it to other machines. A critical piece tends to be missing, left as an exercise for the reader, and that is: how do you get your cool engine to talk to the game? That is, how does a scripting function call a C++ game function? How does work remote procedure call actually invoke the C++ function when it reaches the other machine? What about plicated issues such as passing pointers or strings over work?
Typical solutions to this problem end up requiring nontrivial architectural changes to your game engine and lots of shoehorn code. This paper describes a novel method for exporting a game’s functionality to dynamic systems such as scripting, networking, and databases that is pletely unobtrusive to a game’s systems. It can be bolted on to an existing game with very little effort. Exporting a game function of nearly any kind ultimately resolves down to inserting a single macro before the function declaration. Making the workable requires only a single additional macro inside of the function.
A prototype version of this system was published as the “Generic Function Binding Interface” gem in the book Game Programming Gems. Much has been learned since then. By the end of this paper, if you find yourself wondering whether or not this stuff really works, consider that an enhanced version of the design given here is essentially the foundation for much of Dungeon Siege, a game by Gas Powered Games. What started out as a 1000 line weeklong experiment (back when FuBi really just meant “function binder”) has turned into a 16K line gift that keeps on giving. This technique pletely changed the way that this author builds games.
Audien

最近更新

2024年河南医学高等专科学校单招职业倾向性考.. 39页

2024年河南女子职业学院单招职业倾向性测试模.. 40页

2024年河南对外经济贸易职业学院单招职业适应.. 40页

2024年河南林业职业学院单招职业适应性测试模.. 41页

2024年河南物流职业学院单招综合素质考试模拟.. 39页

2024年河南省南阳市单招职业倾向性测试模拟测.. 39页

2024年河南省安阳市单招职业适应性考试题库汇.. 40页

2024年河南省省直辖行政单位单招职业适应性测.. 39页

2024年河南省鹤壁市单招职业适应性测试模拟测.. 40页

2024年河南轻工职业学院单招职业适应性测试模.. 40页

2024年泉州幼儿师范高等专科学校单招职业倾向.. 40页

2024年泉州纺织服装职业学院单招职业倾向性考.. 39页

2024年泉州职业技术大学单招职业技能考试模拟.. 40页

2024年泸州医疗器械职业学院单招职业倾向性测.. 40页

2024年洛阳商业职业学院单招职业技能测试题库.. 41页

2024年洛阳科技职业学院单招职业适应性测试模.. 42页

2024年济南护理职业学院单招职业技能测试模拟.. 43页

2024年济源职业技术学院单招职业适应性测试模.. 40页

2024年浙江交通职业技术学院单招综合素质考试.. 41页

2024年浙江农林大学暨阳学院单招职业倾向性考.. 40页

2024年浙江商业职业技术学院单招职业技能考试.. 41页

2024年浙江工业职业技术学院单招综合素质考试.. 39页

2024年浙江工贸职业技术学院单招职业倾向性考.. 40页

2024年浙江建设职业技术学院单招职业适应性测.. 42页

2024年浙江树人大学单招综合素质考试模拟测试.. 40页

2024年浙江特殊教育职业学院单招职业技能测试.. 40页

2024年浙江省台州市单招职业倾向性考试模拟测.. 40页

2024年浙江省舟山市单招职业适应性考试模拟测.. 40页

2025年重庆市《保安员证》考试题库含答案 39页

预防滑倒、绊倒及跌落专题培训课件 45页