Skip to content

Commit 641db55

Browse files
committed
first commit
1 parent d862504 commit 641db55

File tree

270 files changed

+33507
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+33507
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Check our [contribution guidelines](CONTRIBUTING.md) for information on how to c
3131
|**[Photon Realtime](/Transports/com.community.netcode.transport.photon-realtime)**| Desktop, Mobile, WebGL\** | :heavy_check_mark: | :heavy_check_mark: | |
3232
|**[Facepunch](/Transports/com.community.netcode.transport.facepunch)**| Steam | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
3333
|**[Multipeer Connectivity](/Transports/com.community.netcode.transport.multipeer-connectivity)**| iOS | :heavy_check_mark: | :heavy_check_mark: | |
34+
|**[Pico](/Transports/com.community.netcode.transport.pico)**| PICO ||| :heavy_check_mark: |
3435

3536
\* Needs manual binary compilation.<br>
3637
\** Other platforms such as console platforms are also supported but require communication with Exit Games.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
3+
4+
## 0.0.1
5+
First version of the \<Pico\> transport as a Unity package.

Transports/com.community.netcode.transport.pico/CHANGELOG.md.meta

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Unity Technologies
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Transports/com.community.netcode.transport.pico/LICENSE.md.meta

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Transports/com.community.netcode.transport.pico/README.md

+202
Large diffs are not rendered by default.

Transports/com.community.netcode.transport.pico/README.md.meta

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Transports/com.community.netcode.transport.pico/README.zh-CN.md

+206
Large diffs are not rendered by default.

Transports/com.community.netcode.transport.pico/README.zh-CN.md.meta

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Transports/com.community.netcode.transport.pico/Runtime.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Transports/com.community.netcode.transport.pico/Runtime/Editor.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#if UNITY_EDITOR
2+
using UnityEditor;
3+
using Netcode.Transports.Pico;
4+
5+
namespace Netcode.Transport.Pico
6+
{
7+
[CustomEditor(typeof(PicoTransport))]
8+
[CanEditMultipleObjects]
9+
public class PicoTransportEditor : Editor
10+
{
11+
SerializedProperty _workMode;
12+
SerializedProperty _independentInfo;
13+
SerializedProperty _transportLogLevel;
14+
void OnEnable()
15+
{
16+
_workMode = serializedObject.FindProperty("WorkMode");
17+
_independentInfo = serializedObject.FindProperty("SimpleModeInfo");
18+
_transportLogLevel = serializedObject.FindProperty("TransportLogLevel");
19+
}
20+
21+
public override void OnInspectorGUI()
22+
{
23+
serializedObject.Update();
24+
EditorGUILayout.PropertyField(_workMode);
25+
EditorGUILayout.PropertyField(_transportLogLevel);
26+
PicoTransport.SetLogLevel((PicoTransport.LogLevel)_transportLogLevel.enumValueIndex);
27+
PicoTransport.EWorkMode tmpWorkMode = (PicoTransport.EWorkMode)_workMode.enumValueIndex;
28+
switch (tmpWorkMode)
29+
{
30+
case PicoTransport.EWorkMode.ExternalRoom:
31+
{
32+
EditorGUILayout.LabelField("ExternalRoom Mode");
33+
}
34+
break;
35+
case PicoTransport.EWorkMode.Simple:
36+
{
37+
EditorGUILayout.LabelField("Simple Mode");
38+
EditorGUILayout.PropertyField(_independentInfo, true);
39+
}
40+
break;
41+
default:
42+
EditorGUILayout.LabelField("invalid work mode");
43+
return;
44+
}
45+
serializedObject.ApplyModifiedProperties();
46+
} //OnInspectorGUI()
47+
48+
}
49+
}
50+
#endif

Transports/com.community.netcode.transport.pico/Runtime/Editor/PicoTransportEditor.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Transports/com.community.netcode.transport.pico/Runtime/ExternalMode.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)