Skip to content

Commit

Permalink
Nuget shit
Browse files Browse the repository at this point in the history
  • Loading branch information
garrynewman committed Feb 24, 2020
1 parent 61a1039 commit 895e11e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
13 changes: 8 additions & 5 deletions Facepunch.Steamworks.Test/SteamNetworkingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ public async Task SendP2PPacket()

Assert.IsTrue( sent );

while ( !SteamNetworking.IsP2PPacketAvailable() )
{
await Task.Delay( 10 );
}
while ( SteamNetworking.IsP2PPacketAvailable() )
{
var packet = SteamNetworking.ReadP2PPacket();
if ( packet.HasValue )
{
HandleMessageFrom( packet.Value.SteamId, packet.Value.Data );
}
}

var packet = SteamNetworking.ReadP2PPacket();

Assert.IsTrue( packet.HasValue );

Expand Down
17 changes: 9 additions & 8 deletions Facepunch.Steamworks/Facepunch.Steamworks.Win64.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,28 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

<ItemGroup>
<None Update="steam_api64.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<PropertyGroup>
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net40'">C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client</FrameworkPathOverride>
<Authors>Garry Newman</Authors>
<PackageId>Facepunch.Steamworks</PackageId>
<PackageDescription>Another fucking c# Steamworks implementation</PackageDescription>
<PackageProjectUrl>https://github.com/Facepunch/Facepunch.Steamworks</PackageProjectUrl>
<PackageIconUrl>https://files.facepunch.com/garry/c5edce1c-0c21-4c5d-95b6-37743be7455d.jpg</PackageIconUrl>
<PackageIcon>Facepunch.Steamworks.jpg</PackageIcon>
<PackageTags>facepunch;steam;unity;steamworks;valve</PackageTags>
<PackageVersion>2.2.0</PackageVersion>
<PackageVersion>2.3.0</PackageVersion>
<LangVersion>latest</LangVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/Facepunch/Facepunch.Steamworks.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<ItemGroup>
<None Include="steam_api64.dll" Pack="true" PackagePath="\native\">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Facepunch.Steamworks.jpg" Pack="true" PackagePath="\"/>
</ItemGroup>

<Import Project="Facepunch.Steamworks.targets" />

</Project>
Binary file added Facepunch.Steamworks/Facepunch.Steamworks.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 895e11e

Please sign in to comment.