Skip to content

Commit cd1275b

Browse files
committed
feat: initial commit and code
0 parents  commit cd1275b

32 files changed

Lines changed: 1136 additions & 0 deletions

.editorconfig

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
###############################
2+
# Core EditorConfig Options #
3+
###############################
4+
root = true
5+
[*.{cs,csx,vb,vbx,md}]
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
charset = utf-8
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
# Code files
14+
[*.{cs,csx,vb,vbx}]
15+
trim_trailing_whitespace = true
16+
###############################
17+
# .NET Coding Conventions #
18+
###############################
19+
[*.{cs,vb}]
20+
# Organize usings
21+
dotnet_sort_system_directives_first = true
22+
# this. preferences
23+
dotnet_style_qualification_for_field = false:silent
24+
dotnet_style_qualification_for_property = false:silent
25+
dotnet_style_qualification_for_method = false:silent
26+
dotnet_style_qualification_for_event = false:silent
27+
# Language keywords vs BCL types preferences
28+
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
29+
dotnet_style_predefined_type_for_member_access = true:silent
30+
# Parentheses preferences
31+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
32+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
33+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
34+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
35+
# Modifier preferences
36+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
37+
dotnet_style_readonly_field = true:suggestion
38+
39+
# Code-block preferences
40+
csharp_prefer_braces = when_multiline:suggestion
41+
csharp_prefer_simple_using_statement = false:suggestion
42+
43+
# Expression-level preferences
44+
dotnet_style_object_initializer = true:suggestion
45+
dotnet_style_collection_initializer = true:suggestion
46+
dotnet_style_explicit_tuple_names = true:suggestion
47+
dotnet_style_null_propagation = true:suggestion
48+
dotnet_style_coalesce_expression = true:suggestion
49+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent
50+
dotnet_prefer_inferred_tuple_names = true:suggestion
51+
dotnet_prefer_inferred_anonymous_type_member_names = true:suggestion
52+
dotnet_style_prefer_auto_properties = true:silent
53+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
54+
dotnet_style_prefer_conditional_expression_over_return = true:silent
55+
###############################
56+
# Naming Conventions #
57+
###############################
58+
# Style Definitions
59+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
60+
# Use PascalCase for constant fields
61+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
62+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
63+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
64+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
65+
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
66+
dotnet_naming_symbols.constant_fields.required_modifiers = const
67+
dotnet_naming_rule.method_should_be_pascal_case.severity = suggestion
68+
dotnet_naming_rule.method_should_be_pascal_case.symbols = method
69+
dotnet_naming_rule.method_should_be_pascal_case.style = pascal_case_style
70+
dotnet_naming_symbols.method.applicable_kinds = method
71+
dotnet_naming_symbols.method.applicable_accessibilities = *
72+
dotnet_naming_symbols.method.required_modifiers =
73+
###############################
74+
# C# Coding Conventions #
75+
###############################
76+
[*.cs]
77+
# var preferences
78+
csharp_style_var_for_built_in_types = false:suggestion
79+
csharp_style_var_when_type_is_apparent = true:suggestion
80+
csharp_style_var_elsewhere = false:suggestion
81+
# Expression-bodied members
82+
csharp_style_expression_bodied_methods = false:silent
83+
csharp_style_expression_bodied_constructors = false:silent
84+
csharp_style_expression_bodied_operators = false:silent
85+
csharp_style_expression_bodied_properties = true:silent
86+
csharp_style_expression_bodied_indexers = true:silent
87+
csharp_style_expression_bodied_accessors = true:silent
88+
# Pattern matching preferences
89+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
90+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
91+
# Null-checking preferences
92+
csharp_style_throw_expression = true:suggestion
93+
csharp_style_conditional_delegate_call = true:suggestion
94+
# Modifier preferences
95+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
96+
# Expression-level preferences
97+
csharp_prefer_braces = true:silent
98+
csharp_style_deconstructed_variable_declaration = true:suggestion
99+
csharp_prefer_simple_default_expression = true:suggestion
100+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
101+
csharp_style_inlined_variable_declaration = true:suggestion
102+
###############################
103+
# C# Formatting Rules #
104+
###############################
105+
# New line preferences
106+
csharp_new_line_before_open_brace = all
107+
csharp_new_line_before_else = true
108+
csharp_new_line_before_catch = true
109+
csharp_new_line_before_finally = true
110+
csharp_new_line_before_members_in_object_initializers = true
111+
csharp_new_line_before_members_in_anonymous_types = true
112+
csharp_new_line_between_query_expression_clauses = true
113+
# Indentation preferences
114+
csharp_indent_case_contents = true
115+
csharp_indent_switch_labels = true
116+
csharp_indent_labels = flush_left
117+
# Space preferences
118+
csharp_space_after_cast = false
119+
csharp_space_after_keywords_in_control_flow_statements = true
120+
csharp_space_between_method_call_parameter_list_parentheses = false
121+
csharp_space_between_method_declaration_parameter_list_parentheses = false
122+
csharp_space_between_parentheses = false
123+
csharp_space_before_colon_in_inheritance_clause = true
124+
csharp_space_after_colon_in_inheritance_clause = true
125+
csharp_space_around_binary_operators = before_and_after
126+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
127+
csharp_space_between_method_call_name_and_opening_parenthesis = false
128+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
129+
# Wrapping preferences
130+
csharp_preserve_single_line_statements = true
131+
csharp_preserve_single_line_blocks = true
132+
# IDE0090: Use 'new(...)'
133+
csharp_style_implicit_object_creation_when_type_is_apparent = false
134+
###############################
135+
# VB Coding Conventions #
136+
###############################
137+
[*.vb]
138+
# Modifier preferences
139+
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
140+
141+
[*.yml]
142+
indent_style = space
143+
indent_size = 2
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**Repro project**
13+
It would be very helpful if you can produce a small project that reproduces the issue. Upload it to dropbox or google drive and attach the link to this issue.
14+
15+
**To Reproduce**
16+
Steps to reproduce the behavior:
17+
1. Open the attached project '...'
18+
2. Click on '....'
19+
3. Scroll down to '....'
20+
4. See error
21+
22+
**Expected behavior**
23+
A clear and concise description of what you expected to happen.
24+
25+
**Screenshots**
26+
If applicable, add screenshots to help explain your problem.
27+
28+
**Desktop (please complete the following information):**
29+
* OS: \[e.g. Windows, MacOS\]
30+
* Build target: \[e.g. Android, webgl, standalone, iOS\]
31+
* Unity version: \[e.g. 2017.4]
32+
* Mirror branch: \[e.g. master, 2018\]
33+
34+
**Additional context**
35+
Add any other context about the problem here.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Please explain the suggested feature in detail.**
10+
11+
**How exactly does this keep you from releasing your game right now?**
12+
13+
**Can you suggest a possible solution?**
14+
15+
**Additional context**
16+
Add any other context or screenshots about the feature request here.

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
Release:
11+
runs-on: windows-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
with:
16+
submodules: recursive
17+
fetch-depth: 0
18+
19+
- name: Release
20+
uses: cycjimmy/semantic-release-action@v2
21+
with:
22+
extra_plugins: |
23+
@semantic-release/exec
24+
@semantic-release/changelog
25+
@semantic-release/git
26+
branch: main
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Created by performance test
2+
Assets/StreamingAssets/
3+
Assets/StreamingAssets.meta
4+
Assets/Resources
5+
Assets/Resources.meta
6+
7+
# =============== #
8+
# Unity generated #
9+
# =============== #
10+
Source/Temp/
11+
Source/Library/
12+
13+
# ===================================== #
14+
# Project specific #
15+
# ===================================== #
16+
Database.sqlite
17+
Database/
18+
19+
# ===================================== #
20+
# Visual Studio / MonoDevelop / Rider #
21+
# ===================================== #
22+
ExportedObj/
23+
obj/
24+
*.svd
25+
*.userprefs
26+
/*.csproj
27+
Source/Assembly-CSharp.csproj
28+
Source/Assembly-CSharp-Editor.csproj
29+
Source/Assembly-CSharp-firstpass.csproj
30+
Source/Source.sln
31+
*.pidb
32+
*.suo
33+
/*.sln
34+
*.user
35+
*.unityproj
36+
*.booproj
37+
Output/
38+
bin/
39+
.vs/
40+
.idea/
41+
Mirror/packages
42+
.mfractor
43+
44+
# Unity generated
45+
Library
46+
Temp
47+
UnityPackageManager
48+
CodeCoverage
49+
Logs
50+
Obj
51+
*.mdb
52+
*.mdb.meta
53+
54+
# generated by jekyll for documentation
55+
docs/_site
56+
docs/.bundle
57+
docs/vendor
58+
docs/.sass-cache
59+
# ============ #
60+
# OS generated #
61+
# ============ #
62+
.DS_Store
63+
.DS_Store?
64+
._*
65+
.Spotlight-V100
66+
.Trashes
67+
ehthumbs.db
68+
Thumbs.db
69+
/VisRepo.txt
70+
71+
.sonarqube
72+
CodeCoverage
73+
ProjectSettings
74+
/Tests
75+
Assets/Mirror/Samples
76+
Assets/Mirror/Samples.meta
77+
78+
Builds/
79+
InitTestScene*.unity.*
80+
InitTestScene*.unity

.releaserc.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
plugins:
2+
- '@semantic-release/github'
3+
- '@semantic-release/release-notes-generator'
4+
- '@semantic-release/commit-analyzer'
5+
- - '@semantic-release/exec'
6+
- prepareCmd: "sed -i -e '/AssemblyVersion/s/\".*\"/\"${nextRelease.version}\"/'
7+
Assets/MultiplexSocket/Runtime/AssemblyInfo.cs"
8+
- - '@semantic-release/changelog'
9+
- changelogFile: 'Assets/MultiplexSocket/CHANGELOG.md'
10+
- - '@semantic-release/npm'
11+
- npmPublish: false
12+
pkgRoot: "Assets/MultiplexSocket"
13+
- - '@semantic-release/git'
14+
- assets:
15+
- 'Assets/MultiplexSocket/Runtime/AssemblyInfo.cs'
16+
- 'Assets/MultiplexSocket/package.json'
17+
- 'Assets/MultiplexSocket/CHANGELOG.md'

.vsconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "1.0",
3+
"components": [
4+
"Microsoft.VisualStudio.Workload.ManagedGame"
5+
]
6+
}

Assets/MultiplexSocket.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/MultiplexSocket/CHANGELOG.md

Whitespace-only changes.

Assets/MultiplexSocket/CHANGELOG.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)