Skip to content

Instantly share code, notes, and snippets.

@ChristianHohlfeld
Created October 4, 2018 20:38
Show Gist options
  • Save ChristianHohlfeld/c83ffc97347dc12781329ccbcc024785 to your computer and use it in GitHub Desktop.
Save ChristianHohlfeld/c83ffc97347dc12781329ccbcc024785 to your computer and use it in GitHub Desktop.
GameMessageFactory.h
//
// GameMessageFactory.h
// UDPTEST
//
// Created by Christian Hohlfeld on 16.09.18.
//
#ifndef GameMessageFactory_h
#define GameMessageFactory_h
#include "GameMessageType.h"
#include "MyMessage.h"
YOJIMBO_MESSAGE_FACTORY_START(GameMessageFactory, (int)GameMessageType::COUNT);
YOJIMBO_DECLARE_MESSAGE_TYPE((int)GameMessageType::TEST, MyMessage);
YOJIMBO_MESSAGE_FACTORY_FINISH();
#endif /* GameMessageFactory_h */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment