Skip to content

Commit

Permalink
Use shorter links (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur authored Sep 30, 2023
1 parent 9560d62 commit 119143d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ And for events with `Box<dyn Reflect>` you can use [`ServerEventAppExt::add_serv
## Server and client creation
To connect to the server or create it, you need to initialize the
[`renet::RenetClient`] and [`renet::transport::NetcodeClientTransport`] **or**
[`renet::RenetServer`] and [`renet::transport::NetcodeServerTransport`] resources from Renet.
[`RenetClient`] and [`NetcodeClientTransport`](renet::transport::NetcodeClientTransport) **or**
[`RenetServer`] and [`NetcodeServerTransport`](renet::transport::NetcodeServerTransport) resources from Renet.
All Renet API is re-exported from this plugin.
Never create client and server resources in the same app for single-player, it will cause replication loop.
Expand All @@ -319,7 +319,7 @@ Use the described pattern instead.
The only part of it that handled by this plugin is channels that used for
events and component replication. These channels should be obtained from the
[`NetworkChannels`] resource. So when creating server you need to initialize
[`renet::ConnectionConfig`] like this:
[`ConnectionConfig`](renet::ConnectionConfig) like this:
```rust
# use bevy::prelude::*;
Expand Down

0 comments on commit 119143d

Please sign in to comment.