Open B-head opened 1 year ago
I intended to deal with just GameLift Anywhere, but had to rewrite most of the code.
Resolve #8.
InitSdk()
get_fleet_role_credentials()
remove terminate_game_session()
prosess_parameters::ProcessParameters
entity
model
Until now:
on_update_game_session: Box::new(|update_game_session| { Box::pin(async move { log::info!("{:?}", update_game_session) }) }),
From now on:
on_update_game_session: |update_game_session| async move { log::info!("{:?}", update_game_session) },
Construct ProcessParameters with the channel bind to callbacks is a simpler way to handle server events. See examples/channel.rs example for details.
MatchmakerData
@B-head thanks a lot for the contribution!
Let me know, then the PR will be ready for review.
I intended to deal with just GameLift Anywhere, but had to rewrite most of the code.
Resolve #8.
Change in follow-up to SDK version 5
InitSdk()
to configure connections for GameLift Anywhere support.get_fleet_role_credentials()
andremove terminate_game_session()
.API improvements
Organize module layout (Overall)
prosess_parameters::ProcessParameters
to the top level of the crate.entity
module to themodel
module so they match the original SDK.Simplify callback construction of ProcessParameters
Until now:
From now on:
Channel-based event handling
Construct ProcessParameters with the channel bind to callbacks is a simpler way to handle server events. See examples/channel.rs example for details.
Not yet implemented
MatchmakerData
type. (Because the use is unknown)