CTR-Pia
5.4.3
Game Communication Engine
メインページ
ネームスペース一覧
クラス構成
クラス索引
関連ページ
Result 検索
全て
クラス
ネームスペース
関数
変数
型定義
列挙型
列挙型の値
ページ
pia_PlatformNin.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/pia/pia_Settings.h>
17
18
#define NN_PIA_ENDIAN_BIG 0
19
#define NN_PIA_ENABLE_CRYPT 1
20
#define NN_PIA_ENABLE_CACHEDPRINT 0
21
#define NN_PIA_ENABLE_MONITORING 1
22
23
#include <stdint.h>
24
#include <nn/nn_Result.h>
25
#include <nn/os.h>
26
#include <nn/nn_Version.h>
27
28
#if NN_PIA_NINTENDOSDK_WIN
29
30
#define NN_PIA_ENABLE_NSA 0
31
#define NN_PIA_ENABLE_NEX 1
32
#define NN_PIA_ENABLE_WINSOCK 0
33
#define NN_PIA_EXPERIMENT_SERVICE_NODE 1
34
35
#if NN_PIA_ENABLE_WINSOCK
36
#include <winsock2.h>
37
#endif
38
39
#if !defined WIN32_LEAN_AND_MEAN
40
#define WIN32_LEAN_AND_MEAN
41
#endif
42
#if !defined NOMINMAX
43
#define NOMINMAX
44
#endif
45
#ifdef NN_PIA_UNREAL
46
#include "AllowWindowsPlatformTypes.h"
47
#endif
48
#include <nn/nn_Windows.h>
49
#ifdef NN_PIA_UNREAL
50
#include "HideWindowsPlatformTypes.h"
51
#endif
52
53
#else // NN_PIA_NINTENDOSDK_NX
54
55
#define NN_PIA_ENABLE_NSA 1
56
#define NN_PIA_ENABLE_NEX 1
57
#define NN_PIA_ENABLE_WINSOCK 0
58
#define NN_PIA_EXPERIMENT_SERVICE_NODE 0
59
60
#endif
61
62
63
#include <nn/pia/platform/pia_BasicMacrosNin.h>
64
65
namespace
nn
66
{
67
namespace
pia
68
{
69
70
typedef
char16_t charUtf16_t;
71
72
const
uint16_t
MaxStationNum
= 32;
//!< Piaのセッションに参加可能なStation数の最大値です。
73
const
uint32_t
MaxUserNameLength
= 10;
//!< ユーザー名の最大文字数です。(NULL終端文字は含みません)
74
const
uint32_t
MaxPlayerNameLength
= 20;
//!< プレイヤー名の最大文字数です。
75
const
uint8_t
MaxPlayerInfoSize
= 4;
//!< プレイヤー情報の最大サイズです。
76
77
/*!
78
@brief StationIndex の列挙型です。
79
80
@details Pia の各モジュールは、ネットワークの種別に依らずセッション内の
81
Station の識別子として StationIndex を使用します。
82
この ID は Station 毎の情報をアプリケーションが配列として扱えることを
83
意図して作られています。
84
85
Pia ライブラリがサポートする最大同時接続数が変更される度に最大値は
86
変化します。
87
88
*/
89
enum
StationIndex
90
{
91
StationIndex_1
= 0,
//!< Player 1 を示す ID です
92
StationIndex_2
,
//!< Player 2 を示す ID です
93
StationIndex_3
,
//!< Player 3 を示す ID です
94
StationIndex_4
,
//!< Player 4 を示す ID です
95
StationIndex_5
,
//!< Player 5 を示す ID です
96
StationIndex_6
,
//!< Player 6 を示す ID です
97
StationIndex_7
,
//!< Player 7 を示す ID です
98
StationIndex_8
,
//!< Player 8 を示す ID です
99
StationIndex_9
,
//!< Player 9 を示す ID です
100
StationIndex_10
,
//!< Player 10 を示す ID です
101
StationIndex_11
,
//!< Player 11 を示す ID です
102
StationIndex_12
,
//!< Player 12 を示す ID です
103
StationIndex_13
,
//!< Player 13 を示す ID です
104
StationIndex_14
,
//!< Player 14 を示す ID です
105
StationIndex_15
,
//!< Player 15 を示す ID です
106
StationIndex_16
,
//!< Player 16 を示す ID です
107
StationIndex_17
,
//!< Player 17 を示す ID です
108
StationIndex_18
,
//!< Player 18 を示す ID です
109
StationIndex_19
,
//!< Player 19 を示す ID です
110
StationIndex_20
,
//!< Player 20 を示す ID です
111
StationIndex_21
,
//!< Player 21 を示す ID です
112
StationIndex_22
,
//!< Player 22 を示す ID です
113
StationIndex_23
,
//!< Player 23 を示す ID です
114
StationIndex_24
,
//!< Player 24 を示す ID です
115
StationIndex_25
,
//!< Player 25 を示す ID です
116
StationIndex_26
,
//!< Player 26 を示す ID です
117
StationIndex_27
,
//!< Player 27 を示す ID です
118
StationIndex_28
,
//!< Player 28 を示す ID です
119
StationIndex_29
,
//!< Player 29 を示す ID です
120
StationIndex_30
,
//!< Player 30 を示す ID です
121
StationIndex_31
,
//!< Player 31 を示す ID です
122
StationIndex_32
,
//!< Player 32 を示す ID です
123
StationIndex_Max
=
StationIndex_32
,
//!< StationIndex の最大値です
124
StationIndex_Invalid
= 0xfd,
//!< Session 内に存在しない Station を示す ID です
125
StationIndex_Host
= 0xfe,
//!< Hostの役割を持つ Station を示す ID です
126
StationIndex_All
= 0xff
//!< Session 内のすべての Station を示す ID です
127
};
128
}
129
}
// end of namespace nn::pia
Include
nn
pia
platform
pia_PlatformNin.h
© 2016 Nintendo Co., Ltd. All rights reserved. 記載されている会社名、製品名等は、各社の登録商標または商標です。