Shouldn't need a seperate cast method, just a static type.

On Monday, May 12, 2014, RedShamilton <notifications@github.com> wrote:

> In engine-core/Engine.cpp:
>
> >  }
> >
> > -void Engine::dispatchUpdate(QueueItem &item) {
> > -	BufferReader readBuffer(item.data, item.len);
> > -	const struct EventHeader *header = reinterpret_cast<const struct EventHeader *>(readBuffer.getPointer());
> > -	readBuffer.finished(sizeof(struct EventHeader));
> > +void Engine::dispatchUpdate(Event* event) {
> > +	if( event->getType() == EventType::REGISTRATION ) {
> > +		RegistrationEvent* regEvent = static_cast<RegistrationEvent*>(event);
>
> Ill work on adding this into the eventctortable and making a cast method
> for it
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/5-second-rule/engine/pull/9/files#r12567242>
> .
>