SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
DummyClass.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
5  * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
6  */
7 
8 #pragma once
9 
10 #include <EventProcessor.h>
11 
12 class AuthLink;
13 
14 namespace SEGSEvents
15 {
16 class Connect;
17 class AuthProtocolVersion;
18 class LoginResponse;
19 class AuthorizationError;
20 class ServerListResponse;
21 class ServerSelectResponse;
22 }
23 class DummyClass : public EventProcessor
24 {
25 public:
27  DummyClass();
28 
29  // EventProcessor interface
30  void dispatch(SEGSEvents::Event *ev) override;
31 protected:
32  void serialize_from(std::istream &is) override;
33  void serialize_to(std::ostream &is) override;
34 
35 protected:
36  void onConnect(SEGSEvents::Connect * ev);
37  void onServerVersion(SEGSEvents::AuthProtocolVersion * ev);
38  void onLoginResponse(SEGSEvents::LoginResponse *ev);
39  void onAuthorizationError(SEGSEvents::AuthorizationError * ev);
40  void onServerListResponse(SEGSEvents::ServerListResponse * ev);
41  void onServerSelectResponse(SEGSEvents::ServerSelectResponse * ev);
42 
43  AuthLink * m_our_link = nullptr;
44 };
Definition: SEGSEvent.h:35
Definition: LinkLevelEvent.h:13
Definition: ServerSelectResponse.h:14
Definition: DummyClass.h:23
Definition: AuthorizationProtocolVersion.h:15
Definition: AuthorizationError.h:14
Definition: EventProcessor.h:22
Definition: LoginResponse.h:15
Definition: ServerListResponse.h:30
#define IMPL_ID(EventProcessorChildType)
Definition: EventProcessor.h:44
Definition: LinkLevelEvent.h:15