Monobit Unity Networking ver.2.8.0 Server API Reference (C++)
MunVersion.hpp
Go to the documentation of this file.
1 
8 #ifndef __MUN_VERSION_HPP__
9 #define __MUN_VERSION_HPP__
10 
11 #include <mrs.hpp>
12 
13 #define MUN_VERSION_KEY "mun"
14 #define MUN_VERSION 0x00010001
15 
20 {
21 public:
26  mrs_set_version(MUN_VERSION_KEY, MUN_VERSION);
27  }
28 
32  virtual ~MunVersion(){}
33 
39  uint32 GetVersion(std::string key) {
40  return mrs_get_version(key.c_str());
41  }
42 
49  uint32 GetRemoteVersion(MrsConnection remoteConnection, std::string key) {
50  return mrs_connection_get_remote_version(remoteConnection, key.c_str());
51  }
52 };
53 
54 #endif /* __MUN_VERSION_HPP__ */
uint32 GetVersion(std::string key)
バージョンの取得.
Definition: MunVersion.hpp:39
uint32 GetRemoteVersion(MrsConnection remoteConnection, std::string key)
接続先のバージョンの取得.
Definition: MunVersion.hpp:49
MunVersion()
コンストラクタ.
Definition: MunVersion.hpp:25
MUNのバージョン管理クラス.
Definition: MunVersion.hpp:19
virtual ~MunVersion()
デストラクタ.
Definition: MunVersion.hpp:32