Recommendations for an Open Source Message System

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
Adversus
Posts: 128
Joined: Sun Oct 05, 2008 10:58 pm
Contact:

Recommendations for an Open Source Message System

Post by Adversus »

Just for simple "entity" communication.

I'm currently just reading up about sigslot but was wondering if there where any others.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

there are several options
either u use a callback system like sigslot or u make so called universal receive or setFunctions. But doing that u limit ur entities to only receive specific datatypes.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

If you don't need something that is very complicated, you can easily write your own. If you need to send/receive arbitrary data types, you can use something like io::IAttributes or boost::any to do that. The messaging system itself should be message type independent.

Travis
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

vitek wrote:If you don't need something that is very complicated, you can easily write your own. If you need to send/receive arbitrary data types, you can use something like io::IAttributes or boost::any to do that. The messaging system itself should be message type independent.

Travis
I wrote my own "any" class which is send via functors to registered entities.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Post Reply