Added some stub mystery dungeon endpoints

This commit is contained in:
Greg Edwards
2019-02-18 03:02:46 -05:00
parent 9008599d9c
commit 633bfa2953
7 changed files with 99 additions and 2 deletions

View File

@@ -20,6 +20,8 @@
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<TargetFrameworkProfile />
<Use64BitIISExpress />
<UseGlobalApplicationHostFile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -60,7 +62,10 @@
<Content Include="Sessions.aspx" />
<Content Include="tetrisds\store.ashx" />
<Content Include="dummy.ashx" />
<None Include="Properties\PublishProfiles\pkmnclassic.net.pubxml" />
<Content Include="pokedungeonds\web\common\setProfile.ashx" />
<Content Include="pokedungeonds\web\rescue\rescueList.ashx" />
<Content Include="pokedungeonds\web\rescue\rescueExist.ashx" />
<None Include="Properties\PublishProfiles\Public.pubxml" />
<None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</None>
@@ -79,6 +84,15 @@
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="pokedungeonds\web\common\setProfile.ashx.cs">
<DependentUpon>setProfile.ashx</DependentUpon>
</Compile>
<Compile Include="pokedungeonds\web\rescue\rescueExist.ashx.cs">
<DependentUpon>rescueExist.ashx</DependentUpon>
</Compile>
<Compile Include="pokedungeonds\web\rescue\rescueList.ashx.cs">
<DependentUpon>rescueList.ashx</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Sessions.aspx.cs">
<DependentUpon>Sessions.aspx</DependentUpon>
@@ -111,7 +125,7 @@
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>True</UseIIS>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>54610</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>

View File

@@ -0,0 +1 @@
<%@ WebHandler Language="C#" CodeBehind="setProfile.ashx.cs" Class="Sample.pokedungeonds.web.common.setProfile" %>

View File

@@ -0,0 +1,28 @@
using GamestatsBase;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace Sample.pokedungeonds.web.common
{
/// <summary>
/// Summary description for setProfile
/// </summary>
public class setProfile : GamestatsHandler
{
public setProfile() : base("TXqjDDOLhPySKSztgBHY", 114069, 32153, 512, 1631340900, "pokedungeonds",
GamestatsRequestVersions.Version2, GamestatsResponseVersions.Version1)
{
}
public override void ProcessGamestatsRequest(byte[] request, MemoryStream response, string url, int pid, HttpContext context, GamestatsSession session)
{
response.Write(new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
0, 8);
}
}
}

View File

@@ -0,0 +1 @@
<%@ WebHandler Language="C#" CodeBehind="rescueExist.ashx.cs" Class="Sample.pokedungeonds.web.rescue.rescueExist" %>

View File

@@ -0,0 +1,26 @@
using GamestatsBase;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace Sample.pokedungeonds.web.rescue
{
/// <summary>
/// Summary description for rescueExist
/// </summary>
public class rescueExist : GamestatsHandler
{
public rescueExist() : base("TXqjDDOLhPySKSztgBHY", 114069, 32153, 512, 1631340900, "pokedungeonds",
GamestatsRequestVersions.Version2, GamestatsResponseVersions.Version1)
{
}
public override void ProcessGamestatsRequest(byte[] request, MemoryStream response, string url, int pid, HttpContext context, GamestatsSession session)
{
}
}
}

View File

@@ -0,0 +1 @@
<%@ WebHandler Language="C#" CodeBehind="rescueList.ashx.cs" Class="Sample.pokedungeonds.web.rescue.rescueList" %>

View File

@@ -0,0 +1,26 @@
using GamestatsBase;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace Sample.pokedungeonds.web.rescue
{
/// <summary>
/// Summary description for rescueList
/// </summary>
public class rescueList : GamestatsHandler
{
public rescueList() : base("TXqjDDOLhPySKSztgBHY", 114069, 32153, 512, 1631340900, "pokedungeonds",
GamestatsRequestVersions.Version2, GamestatsResponseVersions.Version1)
{
}
public override void ProcessGamestatsRequest(byte[] request, MemoryStream response, string url, int pid, HttpContext context, GamestatsSession session)
{
}
}
}