![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 #include "StdAfx.h" 00002 #include "Connectivity.h" 00003 #include "stdio.h" 00004 00005 static Connectivity* m_pInstance; 00006 Connectivity::Connectivity(void) 00007 { 00008 } 00009 00010 Connectivity::~Connectivity(void) 00011 { 00012 } 00013 00014 Connectivity * Connectivity::getInstance() 00015 { 00016 if ( m_pInstance == 0) 00017 { 00018 printf("create new instance\n"); 00019 m_pInstance = new Connectivity(); 00020 } else { 00021 printf("use existing\n"); 00022 } 00023 return m_pInstance; 00024 } 00025 bool Connectivity::Initialize() 00026 { 00027 return true; 00028 } 00029 void Connectivity::Shutdown() 00030 { 00031 } 00032 //RakPeerInterface* Connectivity::getConnection();
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.