Groupees Bundle

Written by Adrian Killens on .

We've just been added to a new bundle on Groupees, where you can now grab Lunar Panda Deluxe along with a few other games and my band's album for a mere $3. It's proving pretty popular and has already sold over 2000 copies. Check it out here:

Event forwarding

Written by Dean Edis on .

I was having a coding session recently and needed a class to 'pass on' an event fired from a another class.

ClassA 'has a' private ClassB. ClassB has an EventB event which occasionally fires.
I want ClassA to have an EventA event which fires whenever EventB does.

My first approach was simple: Have ClassA subscribe to ClassB.EventB. When it receives the event it fires its own EventA.

Did you know...

A simpler approach is to use a custom event subscription:

class ClassA 
    private ClassB m_b = new ClassB(); 

    public event EventType EventA 
        add { m_b.EventB += value; } 
        remove { m_b.EventB -= value; } 

Now, anything subscribing to ClassA.EventA will get its subscription passed on to ClassB, but all without the caller having any direct access to ClassB!

Clean and simple...

Lunar Panda Deluxe Now Available on PC

Written by Adrian Killens on .

Some fantastic news for all you Panda fans out there! Lunar Panda Deluxe has literally just been approved by the lovely people at Desura and is now available to purchase for the PC. So what are you waiting for? Grab yourself a copy today and help support us so we can make more excellent games that may or may not include a Panda ;-)

Buy Lunar Panda Deluxe (PC)