Entity Component System

http://t-machine.org/index.php/2007/09/03/entity-systems-are-the-future-of-mmog-development-part-1/php

http://cowboyprogramming.com/2007/01/05/evolve-your-heirachy/动画


 

entity system over viewui



entity component system在游戏开发里面也是有些日子了。对它能够这样描述:
spa

  • entity表明游戏里的东西--有guid来与其余区分component

  • entity能够有彼此包含的关系----树状结构orm

  • entity中有component list,表明其属性和功能,GraphicComponen能够携带material,geometry的属性,能够有变色等功能,animation带有animation数据作动画的功能。。。游戏

  • component之间能够经过entity来彼此访问,好比animation component经过entity更新本entity的graphic component的骨骼数据游戏开发

  • component是data driven的,也就是说能够经过配置文件,editor实时的编辑的方式来描述定义一个entity,它有那些component,里面数据怎么样。开发

  • component也能够实时的加减,好比咱们能够加一个ColorizeComponent来控制GraphicComponent的颜色,在buff时间事后在减掉或者单纯的disable等。get

 


entity in action

实际应用中会考虑到resource和multithreading这些比较特殊和敏感的东西,放在entity里面处理也是比较合适的。

相关文章
相关标签/搜索