WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. Examples
  4. Messaging2.h
Mission NodeSDK 6.2C++networkProject Included

Messaging2.h

Example: Messaging2.h

Examples / SDK 6.2 / C++ / network / Messaging Part II / project / src
Messaging2.h
CPP
1// This header file is generated by WOWCube SDK project wizard
2//
3// Application UUID: 9WEBpryloR
4//
5#pragma once
6
7#include "Gfx.h"
8
9enum GfxObjects
10{
11 idle=0,
12 beat,
13 background,
14 cachette,
15 dot
16};
17
18enum Timers
19{
20 mainTimer=1
21};
22
23class Messaging2: public Cubios::Application
24{
25public:
26 Messaging2();
27 virtual ~Messaging2();
28
29 virtual void on_PhysicsTick(const std::array<Cubios::Screen, 3>& screens) override;
30 virtual void on_Twist(const Cubios::TOPOLOGY_twistInfo_t& twist) override;
31 virtual void on_Message(uint32_t type, uint8_t* pkt, u32_t size) override;
32 virtual void on_ExternalMessage(uint8_t* pkt, u32_t size) override;
33 virtual void on_Pat(uint32_t count) override;
34 virtual void on_Render(std::array<Cubios::Screen, 3>& screens) override;
35 virtual void on_Tick(uint32_t currentTime, uint32_t deltaTime) override;
36 virtual void on_Timer(uint8_t timerID) override;
37 virtual void on_Close() override;
38
39 void InitializeResources();
40
41private:
42 int dot_x;
43 int beat;
44
45 Cubios::NetworkMessage timerMessage;
46};
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Project files

Messaging2.cpp
project/src/Messaging2.cpp
Messaging2.h
project/src/Messaging2.h
wowcubeapp-build.json
project/wowcubeapp-build.json
Context Rail

Related nodes

Messaging2.cpp
Examples / SDK 6.2 / C++ / network / Messaging Part II / project / src
Messaging Part II
Examples / SDK 6.2 / C++ / network
info.json
Examples / SDK 6.2 / C++ / network / Messaging Part II
wowcubeapp-build.json
Examples / SDK 6.2 / C++ / network / Messaging Part II / project
Previous Node
Messaging2.cpp
Examples / SDK 6.2 / C++ / network / Messaging Part II / project / src
Next Node
wowcubeapp-build.json
Examples / SDK 6.2 / C++ / network / Messaging Part II / project