mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Update README.md
Change the Create Server example to reflect the latest version.
This commit is contained in:
parent
0366c39690
commit
d7fd203c02
@ -63,7 +63,11 @@ Or use it in a using block if you can.
|
|||||||
To create a server do this.
|
To create a server do this.
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
var server = new Facepunch.Steamworks.Server( 252490, 0, 28015, true, "MyGame453" );
|
ServerInit options = new ServerInit("GameDirectoryName", "GameDescription");
|
||||||
|
```
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
var server = new Facepunch.Steamworks.Server(252490, options);
|
||||||
```
|
```
|
||||||
|
|
||||||
This will register a secure server for game 252490, any ip, port 28015. Again, more usage in the Facepunch.Steamworks.Test project.
|
This will register a secure server for game 252490, any ip, port 28015. Again, more usage in the Facepunch.Steamworks.Test project.
|
||||||
|
Loading…
Reference in New Issue
Block a user