the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 44 lines 1.5 kB view raw
1// 2// ApplicationView.h 3// 4 5#pragma once 6 7// Application - implements the required functionality for a application 8ref class ApplicationView sealed : public Windows::ApplicationModel::Core::IFrameworkView 9{ 10public: 11 12 ApplicationView(); 13 14 // IFrameworkView Methods 15 virtual void Initialize(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView); 16 virtual void SetWindow(Windows::UI::Core::CoreWindow^ window); 17 virtual void Load(Platform::String^ entryPoint); 18 virtual void Run(); 19 virtual void Uninitialize(); 20 21protected: 22 23 // Event Handlers 24 void OnActivated(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView, Windows::ApplicationModel::Activation::IActivatedEventArgs^ args); 25 void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ args); 26 void OnResuming(Platform::Object^ sender, Platform::Object^ args); 27 void OnResourceAvailabilityChanged( Platform::Object^ sender, Platform::Object^ args ); 28 void OnWindowClosed(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::CoreWindowEventArgs^ args); 29 30private: 31 32// Game^ m_game; 33 bool m_activationComplete; 34 bool m_windowClosed; 35 bool m_inviteProcessed; 36}; 37 38// ApplicationSource - responsible for creating the Application instance 39// and passing it back to the system 40ref class ApplicationViewSource : Windows::ApplicationModel::Core::IFrameworkViewSource 41{ 42public: 43 virtual Windows::ApplicationModel::Core::IFrameworkView^ CreateView(); 44};