Last active
August 29, 2015 14:02
-
-
Save sebyx07/167e784a61677c28a17c to your computer and use it in GitHub Desktop.
matchmaking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Match making | |
//send player | |
message1 = { | |
part: 'mm-insert-players', | |
party: false, | |
password: "23WDIOJADWdwadDdwa3", | |
players: [ | |
'32132132151': { | |
rating: 1234, | |
role: 'carry' | |
} | |
], | |
rating: 1234 | |
} | |
message2 = { | |
part: 'mm-insert-players', | |
party: true, | |
password: "23WDIOJADWdwadDdwa3", | |
players: [ | |
'32132132151': { | |
rating: 1234, | |
role: 'carry' | |
}, | |
'3213213215321': { | |
rating: 1000, | |
role: 'support' | |
} | |
], | |
rating: 1117 | |
} | |
//what mm sends back to webserver every 15secs /when a party is made | |
message3 = { | |
part: 'mm-get-parties', | |
password: "23WDIOJADWdwadDdwa3", | |
parties: [ | |
{ | |
type: 0 //trilane | |
players: [ | |
'3213213215321', | |
'3213213215322', | |
'.............' | |
] | |
}, | |
{ | |
type: 0 //trilane | |
players: [ | |
'3213213215321', | |
'3213213215322', | |
'.............' | |
] | |
}, | |
] | |
} | |
//match parser | |
//i just send the match id, and thats it | |
message1 = { | |
part: 'rating-insert-match', | |
matchId: '12314213321321' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment