Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client-Server #10

Open
FacelessLord opened this issue May 25, 2019 · 5 comments
Open

Client-Server #10

FacelessLord opened this issue May 25, 2019 · 5 comments
Assignees

Comments

@FacelessLord
Copy link
Owner

FacelessLord commented May 25, 2019

Packets:

  • JsonObject that have id and data
  • Serialized Packet
    packet.txt
  • Get, Add methods:
    var packet = new Packet(id: PacketType.Attack);
    packet.Add(Value.PlayerName, "faceless");
    packet.Get<string>("player"); //returns "faceless"
    Data class that enables Add and Get methods like in packet
  • Data contains player uuid
  • Serialized Data:
    55275053-cfff-4307-bdc3-aecec93caa38.txt
  • data file name is uuid of the player
@FacelessLord
Copy link
Owner Author

Fixed TPS

@FacelessLord
Copy link
Owner Author

Two packet types:
World packet - sent each tick - synchronization
Notification packets - sent beside world packets and do not change the world - sound, chat, visuals

@FacelessLord FacelessLord self-assigned this Jul 3, 2019
@FacelessLord FacelessLord reopened this Jul 5, 2019
@FacelessLord
Copy link
Owner Author

FacelessLord commented Jul 10, 2019

  • How data-token will look and how to create it?
  • How we will send the world?
  • Implement Serialization on PlayerData
  • How will client be handled?
  • Should we send response?
  • How to store player's UUIDs?
  • Will we use whitelist file or database calls?

@FacelessLord
Copy link
Owner Author

Have username, password and maybe UUID

@FacelessLord
Copy link
Owner Author

Token = (Salt + name + Salt) xor (Salt + password + Salt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant