Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
7878b835
Commit
7878b835
authored
Apr 04, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add friendship to broadcast message
parent
bafaed2f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ClickHandler.java
src/client/java/com/owlmaddie/ClickHandler.java
+2
-0
No files found.
src/client/java/com/owlmaddie/ClickHandler.java
View file @
7878b835
...
@@ -53,6 +53,7 @@ public class ClickHandler {
...
@@ -53,6 +53,7 @@ public class ClickHandler {
int
line
=
buffer
.
readInt
();
int
line
=
buffer
.
readInt
();
String
status_name
=
buffer
.
readString
(
32767
);
String
status_name
=
buffer
.
readString
(
32767
);
String
sender_name
=
buffer
.
readString
(
32767
);
String
sender_name
=
buffer
.
readString
(
32767
);
int
friendship
=
buffer
.
readInt
();
// Update the chat data manager on the client-side
// Update the chat data manager on the client-side
client
.
execute
(()
->
{
// Make sure to run on the client thread
client
.
execute
(()
->
{
// Make sure to run on the client thread
...
@@ -66,6 +67,7 @@ public class ClickHandler {
...
@@ -66,6 +67,7 @@ public class ClickHandler {
chatData
.
currentLineNumber
=
line
;
chatData
.
currentLineNumber
=
line
;
chatData
.
status
=
ChatDataManager
.
ChatStatus
.
valueOf
(
status_name
);
chatData
.
status
=
ChatDataManager
.
ChatStatus
.
valueOf
(
status_name
);
chatData
.
sender
=
ChatDataManager
.
ChatSender
.
valueOf
(
sender_name
);
chatData
.
sender
=
ChatDataManager
.
ChatSender
.
valueOf
(
sender_name
);
chatData
.
friendship
=
friendship
;
}
}
});
});
});
});
...
...
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