Coder Social home page Coder Social logo

entitas-csharp's Introduction

Entitas Header

Entitas - The Entity Component System for C# and Unity

Entitas is a super fast Entity Component System specifically made for C# and Unity. Internal caching and blazing fast component access makes it second to none. Several design decisions were 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.

Join the chat at https://gitter.im/sschmid/Entitas-CSharp

Twitter-Follow-Me

branch tests
master Build Status
develop Build Status

Watch the talk from UniteEurope 2015

UniteEurope 2015

First glimpse

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

public static Entity CreateRedGem(this Pool pool, int x, int y) {
	return pool.CreateEntity()
	           .IsGameBoardElement(true)
	           .IsMovable(true)
	           .AddPosition(x, y)
	           .AddResource(Res.redGem)
	           .IsInteractive(true);
}
var entities = pool.GetEntities(Matcher.AllOf(Matcher.Move, Matcher.Position));
foreach (var entity in entities) {
    var move = entity.move;
    var pos = entity.position;
    entity.ReplacePosition(pos.x, pos.y + move.speed);
}

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:

  • Entity
  • Pool
  • Group
  • Group Observer

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 pools, groups, entities, components and systems.

Read more...

Entitas.Unity-MenuItems Entitas.Unity.VisualDebugging-Entity Entitas.Unity.VisualDebugging-Systems

Entitas deep dive

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

Download Entitas

Each release is published with Entitas.zip attached containing all source files you need. It contains

  • Entitas
  • Entitas.CodeGenerator
  • Entitas.Unity
  • Entitas.Unity.CodeGenerator
  • Entitas.Unity.VisualDebugging

Show releases

Thanks to

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

Maintainer(s)

Different language?

Entitas is also available in

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.