Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Surveil
MDPro3
Commits
9fa6409f
Commit
9fa6409f
authored
May 26, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send a message every 0.1 seconds
parent
959ac6b9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
23 deletions
+88
-23
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
+80
-22
Assets/Scripts/MDPro3/Duel/TcpHelper.cs
Assets/Scripts/MDPro3/Duel/TcpHelper.cs
+7
-1
Assets/Scripts/MDPro3/Servants/OcgCore.cs
Assets/Scripts/MDPro3/Servants/OcgCore.cs
+1
-0
No files found.
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
View file @
9fa6409f
This diff is collapsed.
Click to expand it.
Assets/Scripts/MDPro3/Duel/TcpHelper.cs
View file @
9fa6409f
...
...
@@ -25,11 +25,14 @@ namespace MDPro3
public
static
List
<
Package
>
packagesInRecord
=
new
List
<
Package
>();
private
static
readonly
Queue
<
Package
>
messageQueue
=
new
Queue
<
Package
>();
static
Thread
senderThead
;
public
static
void
InitializeSender
()
{
try
{
var
senderThead
=
new
Thread
(
Sender
);
senderThead
?.
Abort
();
senderThead
=
new
Thread
(
Sender
);
senderThead
.
IsBackground
=
true
;
senderThead
.
Start
();
}
...
...
@@ -252,7 +255,10 @@ namespace MDPro3
lock
(
locker
)
{
if
(
messageQueue
.
Count
==
0
)
{
senderThead
.
Join
(
100
);
continue
;
}
currentMessage
=
messageQueue
.
Dequeue
();
}
try
...
...
Assets/Scripts/MDPro3/Servants/OcgCore.cs
View file @
9fa6409f
...
...
@@ -1496,6 +1496,7 @@ namespace MDPro3
psum
=
false
;
greenBackground
.
gameObject
.
SetActive
(
false
);
inputMode
=
false
;
}
public
void
AddPackage
(
Package
p
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment