Entitas是针对C#和Unity专门制造的超快实体组件系统(ECS)框架

网友投稿 1028 2022-11-05

Entitas是针对C#和Unity专门制造的超快实体组件系统(ECS)框架

Entitas是针对C#和Unity专门制造的超快实体组件系统(ECS)框架

Entitas is free, but powered by your donations

Entitas - The Entity Component System Framework for C# and Unity

Entitas is a super fast Entity Component System Framework (ECS) specifically made for C# and Unity. Internal caching and blazing fast component access makes it second to none. Several design decisions have been made to work optimal in a garbage collected environment and to go easy on the garbage collector. Entitas comes with an optional code generator which radically reduces the amount of code you have to write and makes your code read like well written prose.

» Download

» Documentation

» Ask a question

» Wiki and example projects

» #madeWithEntitas

Video Tutorials & Unity Unite Talks

First glimpse

The optional code generator lets you write code that is super fast, safe and literally screams its intent.

public static GameEntity CreateRedGem(this GameContext context, Vector3 position) { var entity = context.CreateEntity(); entity.isGameBoardElement = true; entity.isMovable = true; entity.AddPosition(position); entity.AddAsset("RedGem"); entity.isInteractive = true; return entity;}

var entities = context.GetEntities(Matcher.AllOf(GameMatcher.Position, GameMatcher.Velocity));foreach(var e in entities) { var pos = e.position; var vel = e.velocity; e.ReplacePosition(pos.value + vel.value);}

Overview

Entitas is fast, light and gets rid of unnecessary complexity. There are less than a handful classes you have to know to rocket start your game or application:

EntityContextGroupEntity Collector

Read more...

Code Generator

The Code Generator generates classes and methods for you, so you can focus on getting the job done. It radically reduces the amount of code you have to write and improves readability by a huge magnitude. It makes your code less error-prone while ensuring best performance. I strongly recommend using it!

Read more...

Unity integration

The optional Unity module integrates Entitas nicely into Unity and provides powerful editor extensions to inspect and debug contexts, groups, entities, components and systems.

Read more...

Entitas deep dive

Read the wiki or checkout the example projects to see Entitas in action. These example projects illustrate how systems, groups, collectors and entities all play together seamlessly.

Download Entitas

Each release is published with zip files containing all source files you need.

Show releases

Thanks to

Big shout out to @mzaks, @cloudjubei and @devboy for endless hours of discussion and helping making Entitas awesome!

Maintainer(s)

@sschmid | @s_schmid | @entitas_csharp

Different language?

Entitas is available in

C#SwiftC++Objective-CJavaPythonScalaGoF#TypeScriptKotlinHaskellErlangClojure

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:基于Swoole扩展开发游戏服务器框架,示例实现h5游戏开发
下一篇:Igni是一款迷你php7框架用于构建PSR-7和PSR-15兼容REST服务
相关文章

 发表评论

暂时没有评论,来抢沙发吧~