Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Commit

Permalink
Source code of v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenixx19 committed Aug 21, 2020
1 parent d09928c commit 4878ae9
Show file tree
Hide file tree
Showing 5 changed files with 520 additions and 0 deletions.
61 changes: 61 additions & 0 deletions BodyValues.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
using System;
using DiscordRPC;
using DiscordRPC.Logging;
using JumpKing.MiscSystems.Achievements;
using JumpKing.Player;
using Microsoft.Xna.Framework;
using JumpKing.Player;

namespace JumpKingRPC
{
class BodyValues
{
private Vector2 position;
public Vector2 Position { get { return position; } set { position = value; } }
// Token: 0x04000007 RID: 7
private int time = 0;
public int Time { get { return time; } set { time = value; } }
// Token: 0x04000008 RID: 8
private int lastScreen = 0;
public int LastScreen { get { return lastScreen; } set { lastScreen = value; } }
// Token: 0x04000009 RID: 9
private int timeStamp = 0;
public int TimeStamp { get { return timeStamp; } set { timeStamp = value; } }
// Token: 0x0400000A RID: 10
private bool windEnabled = false;
public bool WindEnabled { get { return windEnabled; } set { windEnabled = value; } }

public BodyValues(PlayerEntity player)
{
this.SetValues(player);
}

// Token: 0x0600000D RID: 13
public void SetValues(PlayerEntity player)
{
if (player != null)
{
BodyComp body = player.m_body;
this.WindEnabled = body.m_wind_enabled;
this.Position = body.position;
this.LastScreen = body.m_last_screen;
this.TimeStamp = player.m_time_stamp;
}
if (AchievementManager.instance != null)
{
this.Time = AchievementManager.instance.m_all_time_stats._ticks;
}
}

// Token: 0x0600000E RID: 14
public void UpdateBody(PlayerEntity player)
{
BodyComp body = player.m_body;
body.m_wind_enabled = this.WindEnabled;
body.position = this.Position;
body.m_last_screen = this.LastScreen;
player.m_time_stamp = this.TimeStamp;
AchievementManager.instance.m_all_time_stats._ticks = this.Time;
}
}
}
81 changes: 81 additions & 0 deletions JumpKingRPC.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2C499ED3-0821-4229-A11E-B91D334EDAE8}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>JumpKingRPC</RootNamespace>
<AssemblyName>JumpKingRPC</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="DiscordRPC, Version=1.0.150.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\DiscordRichPresence.1.0.150\lib\net35\DiscordRPC.dll</HintPath>
</Reference>
<Reference Include="JumpKing">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Jump King\JumpKing.exe</HintPath>
</Reference>
<Reference Include="MonoGame.Framework">
<HintPath>..\..\..\..\Desktop\JumpKingTAS-master\Game\MonoGame.Framework.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BodyValues.cs" />
<Compile Include="MainRP.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

0 comments on commit 4878ae9

Please sign in to comment.