CTR-Pia  5.4.3
Game Communication Engine
 全て クラス ネームスペース 関数 変数 型定義 列挙型 列挙型の値 ページ
pia_PlatformCtr.h
1 /*--------------------------------------------------------------------------------*
2  Copyright (C)Nintendo All rights reserved.
3 
4  These coded instructions, statements, and computer programs contain proprietary
5  information of Nintendo and/or its licensed developers and are protected by
6  national and international copyright laws. They may not be disclosed to third
7  parties or copied or duplicated in any form, in whole or in part, without the
8  prior written consent of Nintendo.
9 
10  The content herein is highly confidential and should be handled accordingly.
11  *--------------------------------------------------------------------------------*/
12 
13 
14 #pragma once
15 
16 #include <nn/types.h>
17 #include <nn/Result.h>
18 #include <nn/pia/platform/pia_BasicMacrosCtr.h>
19 #include <nn/uds.h>
20 #include <nn/version.h>
21 
22 #define NN_PIA_ENDIAN_BIG 0
23 #define NN_PIA_ENABLE_NEX 1
24 #define NN_PIA_ENABLE_WINSOCK 0
25 #define NN_PIA_ENABLE_CRYPT 1
26 #define NN_PIA_ENABLE_CACHEDPRINT 1
27 #define NN_PIA_ENABLE_MONITORING 1
28 #define NN_PIA_EXPERIMENT_SERVICE_NODE 0
29 
30 namespace nn
31 {
32 namespace pia
33 {
34 //! @cond CTR_DOC
35 
36 typedef wchar_t charUtf16_t;
37 
38 const uint16_t MaxStationNum = 12; //!< Piaのセッションに参加可能なStation数の最大値です。
39 const uint32_t MaxUserNameLength = nn::cfg::CTR::CFG_USER_NAME_LENGTH - 1; //!< ユーザー名の最大文字数です。(NULL終端文字は含みません)
40 const uint32_t MaxPlayerNameLength = 20; //!< プレイヤー名の最大文字数です。
41 const uint8_t MaxPlayerInfoSize = 1; //!< プレイヤー情報の最大サイズです。
42 
43 /*!
44  @brief StationIndex の列挙型です。
45 
46  @details Pia の各モジュールは、ネットワークの種別に依らずセッション内の
47  Station の識別子として StationIndex を使用します。
48  この ID は Station 毎の情報をアプリケーションが配列として扱えることを
49  意図して作られています。
50 
51  Pia ライブラリがサポートする最大同時接続数が変更される度に最大値は
52  変化します。
53 
54  */
56 {
57  StationIndex_1 = 0, //!< Player 1 を示す ID です
58  StationIndex_2, //!< Player 2 を示す ID です
59  StationIndex_3, //!< Player 3 を示す ID です
60  StationIndex_4, //!< Player 4 を示す ID です
61  StationIndex_5, //!< Player 5 を示す ID です
62  StationIndex_6, //!< Player 6 を示す ID です
63  StationIndex_7, //!< Player 7 を示す ID です
64  StationIndex_8, //!< Player 8 を示す ID です
65  StationIndex_9, //!< Player 9 を示す ID です
66  StationIndex_10, //!< Player 10 を示す ID です
67  StationIndex_11, //!< Player 11 を示す ID です
68  StationIndex_12, //!< Player 12 を示す ID です
69  StationIndex_Max = StationIndex_12, //!< StationIndex の最大値です
70  StationIndex_Invalid = 0xfd, //!< Session 内に存在しない Station を示す ID です
71  StationIndex_Host = 0xfe, //!< Hostの役割を持つ Station を示す ID です
72  StationIndex_All = 0xff //!< Session 内のすべての Station を示す ID です
73 };
74 }
75 } // end of namespace nn::pia
76 
77 //! @endcond