Screenshot trigger

This commit is contained in:
Garry Newman 2016-07-18 14:00:00 +01:00
parent e70f1b738b
commit f84c84e950
3 changed files with 51 additions and 0 deletions

View File

@ -11,6 +11,17 @@ public class Image
public int Width { get; internal set; }
public int Height { get; internal set; }
public bool IsLoaded { get; internal set; }
/// <summary>
/// Return true if this image couldn't be loaded for some reason
/// </summary>
public bool IsError { get; internal set; }
public void Read( byte[] buffer )
{
}
}
}

View File

@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Facepunch.Steamworks
{
public partial class Client : IDisposable
{
Screenshots _screenshots;
public Screenshots Screenshots
{
get
{
if ( _screenshots == null )
_screenshots = new Screenshots( this );
return _screenshots;
}
}
}
public class Screenshots
{
internal Client client;
internal Screenshots( Client c )
{
client = c;
}
public void Trigger()
{
client.native.screenshots.TriggerScreenshot();
}
}
}

View File

@ -123,6 +123,7 @@
<Compile Include="Client\Friends.cs" />
<Compile Include="Client\Image.cs" />
<Compile Include="Client\Inventory.cs" />
<Compile Include="Client\Screenshots.cs" />
<Compile Include="Client\Stats.cs" />
<Compile Include="Client\Voice.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />