MVC with ECS

fbregist's Avatar

fbregist

12 May, 2014 03:51 PM

I'm making a 3D application using away3D for render and a Entity Component System for the logic, all the menus and main app logic are handled with robotlegs.

I've the View3D as a child of a UIComponent, and i need to find a place to put the "controller" of this view, this are the possibilities i'm thinking of:

-Handle the ECS directly in the Mediator of UIComponent -Handle the ECS with a "class" istantiated by the Mediator -Use a Service as a controller by injecting into it the view3D

Guys, please help me figure this out.

  1. 1 Posted by bojamunje on 28 Jul, 2014 05:44 PM

    bojamunje's Avatar

    Mediator should be used just to pass the events between the view and the rest of the application.

    create commands that will be triggered by the events mediated from your view, and let the commands handle ECS

    there is one old Shaun post on entity system form Shaun

  2. Ondina D.F. closed this discussion on 01 Sep, 2014 12:32 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac