Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Split into two packages
Browse files Browse the repository at this point in the history
The GameClient stuff adds a lot of bloat and dependencies when most people
probably would never use it. Dota2 is now split into two packages - Dota2
and Dota2.GameClient. Both will match versions.

Signed-off-by: Christian Stewart <kidovate@gmail.com>
  • Loading branch information
paralin committed Aug 27, 2015
1 parent c47f053 commit 1726ea4
Show file tree
Hide file tree
Showing 54 changed files with 264 additions and 109 deletions.
128 changes: 128 additions & 0 deletions Dota2.GameClient/Dota2.GameClient.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" 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>{0C79CA20-80E5-42D1-B6D0-D3D319D0DD39}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Dota2</RootNamespace>
<AssemblyName>Dota2.GameClient</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</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>
<DocumentationFile>bin\Release\Dota2.GameClient.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Crc32C.NET, Version=1.0.5.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Crc32C.NET.1.0.5.0\lib\net20\Crc32C.NET.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="protobuf-net, Version=2.0.0.668, Culture=neutral, PublicKeyToken=257b51d87d2e4d67, processorArchitecture=MSIL">
<HintPath>..\packages\protobuf-net.2.0.0.668\lib\net40\protobuf-net.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Snappy.NET, Version=1.1.1.8, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Snappy.NET.1.1.1.8\lib\net20\Snappy.NET.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Stateless, Version=2.5.21.0, Culture=neutral, PublicKeyToken=93038f0927583c9a, processorArchitecture=MSIL">
<HintPath>..\packages\Stateless.2.5.21.0\lib\portable-net40+sl50+win+wp80\Stateless.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="SteamKit2, Version=1.6.4.32461, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SteamKit2.1.6.4\lib\net40\SteamKit2.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Engine\Callbacks.cs" />
<Compile Include="Engine\Control\IDotaGameCommander.cs" />
<Compile Include="Engine\Control\IDotaGameController.cs" />
<Compile Include="Engine\Data\AuthTicket.cs" />
<Compile Include="Engine\Data\ConnectDetails.cs" />
<Compile Include="Engine\DotaGameClient.cs" />
<Compile Include="Engine\Game\Data\Entity.cs" />
<Compile Include="Engine\Game\Data\EntityClass.cs" />
<Compile Include="Engine\Game\Data\FlatTable.cs" />
<Compile Include="Engine\Game\Data\Order.cs" />
<Compile Include="Engine\Game\Data\Property.cs" />
<Compile Include="Engine\Game\Data\PropertyClass.cs" />
<Compile Include="Engine\Game\Data\PropertyInfo.cs" />
<Compile Include="Engine\Game\Data\SendTable.cs" />
<Compile Include="Engine\Game\Data\StringTable.cs" />
<Compile Include="Engine\Game\Data\UserCmd.cs" />
<Compile Include="Engine\Game\Data\Value.cs" />
<Compile Include="Engine\Game\Data\Vector.cs" />
<Compile Include="Engine\Game\DotaGameState.cs" />
<Compile Include="Engine\Game\Entities\DotaEntityPool.cs" />
<Compile Include="Engine\Game\Entities\DotaEntitySet.cs" />
<Compile Include="Engine\Game\Entities\Dota\Ability.cs" />
<Compile Include="Engine\Game\Entities\Dota\GameRules.cs" />
<Compile Include="Engine\Game\Entities\Dota\Player.cs" />
<Compile Include="Engine\Game\Entities\Dota\PlayerResource.cs" />
<Compile Include="Engine\Session\Actuators\UserCmdGenerator.cs" />
<Compile Include="Engine\Session\DotaGameConnection.cs" />
<Compile Include="Engine\Session\DotaGameSession.cs" />
<Compile Include="Engine\Session\Handlers\Game\Game.cs" />
<Compile Include="Engine\Session\Handlers\Handshake\DotaHandshake.cs" />
<Compile Include="Engine\Session\Handlers\IHandler.cs" />
<Compile Include="Engine\Session\Handlers\Signon\DotaSignon.cs" />
<Compile Include="Engine\Session\Networking\Lzss.cs" />
<Compile Include="Engine\Session\Networking\Stream.cs" />
<Compile Include="Engine\Session\Networking\Subchannel.cs" />
<Compile Include="Engine\Session\State\Enums\Events.cs" />
<Compile Include="Engine\Session\State\Enums\States.cs" />
<Compile Include="Engine\Session\Unpackers\EntityUpdater.cs" />
<Compile Include="Engine\Session\Unpackers\PropertyValueUnpacker.cs" />
<Compile Include="Engine\Session\Unpackers\SendTableFlattener.cs" />
<Compile Include="Engine\Session\Unpackers\StringTableUpdater.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utils\Bitstream.cs" />
<Compile Include="Utils\CrcUtils.cs" />
<Compile Include="Utils\MiscMath.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Dota2\Dota2.csproj">
<Project>{7825d5e3-9b75-4cb4-a77e-a886ccbcc094}</Project>
<Name>Dota2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
30 changes: 30 additions & 0 deletions Dota2.GameClient/Dota2.GameClient.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Dota2.GameClient</id>
<version>0.3.0</version>
<title>Dota2.GameClient</title>
<authors>paralin</authors>
<licenseUrl>https://github.com/paralin/Dota2/blob/master/Dota2/license.txt</licenseUrl>
<projectUrl>https://github.com/paralin/Dota2</projectUrl>
<iconUrl>https://raw.github.com/paralin/Dota2/master/Resources/Misc/dota2_logo.jpg</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Extends the Dota2 package to enable connections to game servers.</description>
<summary />
<releaseNotes>Release notes are available at https://github.com/paralin/Dota2/releases/tag/Dota2_0.3.0</releaseNotes>
<copyright />
<tags>steam networking steamkit dota dota2 gameclient</tags>
<dependencies>
<dependency id="protobuf-net" version="[2.0.0.668]" />
<dependency id="Newtonsoft.Json" version="[6.0.0, 7.1.0)" />
<dependency id="Stateless" version="[2.5.0, 2.6.0)" />
<dependency id="Snappy.NET" version="[1.1.1.8, 1.2.0.0)" />
<dependency id="SteamKit2" version="[1.6.2, 2.0.0)" />
<dependency id="Dota2" version="[0.3.0]" />
</dependencies>
</metadata>
<files>
<file src="bin\Release\Dota2.GameClient.dll" target="lib\net40\Dota2.GameClient.dll" />
<file src="bin\Release\Dota2.GameClient.xml" target="lib\net40\Dota2.GameClient.xml" />
</files>
</package>
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions Dota2.GameClient/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Dota2.GameClient")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Dota2.GameClient")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("0c79ca20-80e5-42d1-b6d0-d3d319d0dd39")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Dota2.Engine.Game.Data;

Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions Dota2.GameClient/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Crc32C.NET" version="1.0.5.0" targetFramework="net4" userInstalled="true" />
<package id="protobuf-net" version="2.0.0.668" targetFramework="net4" userInstalled="true" />
<package id="Snappy.NET" version="1.1.1.8" targetFramework="net4" userInstalled="true" />
<package id="Stateless" version="2.5.21.0" targetFramework="net4" userInstalled="true" />
<package id="SteamKit2" version="1.6.4" targetFramework="net4" userInstalled="true" />
</packages>
10 changes: 10 additions & 0 deletions Dota2.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dota2GameConnect", "Samples
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LobbyDump", "Samples\LobbyDump\Dota2LobbyDump\LobbyDump.csproj", "{0E3E15EE-37FE-4DB9-8534-9F3BDAF4BFE9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dota2.GameClient", "Dota2.GameClient\Dota2.GameClient.csproj", "{0C79CA20-80E5-42D1-B6D0-D3D319D0DD39}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -50,6 +52,14 @@ Global
{0E3E15EE-37FE-4DB9-8534-9F3BDAF4BFE9}.Release|Any CPU.Build.0 = Release|Any CPU
{0E3E15EE-37FE-4DB9-8534-9F3BDAF4BFE9}.Release|x86.ActiveCfg = Release|Any CPU
{0E3E15EE-37FE-4DB9-8534-9F3BDAF4BFE9}.Release|x86.Build.0 = Release|Any CPU
{0C79CA20-80E5-42D1-B6D0-D3D319D0DD39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0C79CA20-80E5-42D1-B6D0-D3D319D0DD39}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0C79CA20-80E5-42D1-B6D0-D3D319D0DD39}.Debug|x86.ActiveCfg = Debug|Any CPU
{0C79CA20-80E5-42D1-B6D0-D3D319D0DD39}.Debug|x86.Build.0 = Debug|Any CPU
{0C79CA20-80E5-42D1-B6D0-D3D319D0DD39}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0C79CA20-80E5-42D1-B6D0-D3D319D0DD39}.Release|Any CPU.Build.0 = Release|Any CPU
{0C79CA20-80E5-42D1-B6D0-D3D319D0DD39}.Release|x86.ActiveCfg = Release|Any CPU
{0C79CA20-80E5-42D1-B6D0-D3D319D0DD39}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
51 changes: 0 additions & 51 deletions Dota2/Dota2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@
<HintPath>..\packages\protobuf-net.2.0.0.668\lib\net40\protobuf-net.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Snappy.NET, Version=1.1.1.8, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Snappy.NET.1.1.1.8\lib\net20\Snappy.NET.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Stateless">
<HintPath>..\packages\Stateless.2.5.18.0\lib\portable-net40+sl50+win+wp80\Stateless.dll</HintPath>
</Reference>
<Reference Include="SteamKit2">
<HintPath>..\packages\SteamKit2.1.6.3\lib\net40\SteamKit2.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -89,54 +82,10 @@
<Compile Include="Base\Generated\Networking\UserMessages.cs" />
<Compile Include="CDN\DotaCDN.cs" />
<Compile Include="Datagram\Config\Model\NetworkConfig.cs" />
<Compile Include="Engine\Callbacks.cs" />
<Compile Include="Engine\Control\IDotaGameCommander.cs" />
<Compile Include="Engine\Control\IDotaGameController.cs" />
<Compile Include="Engine\Data\AuthTicket.cs" />
<Compile Include="Engine\Data\ConnectDetails.cs" />
<Compile Include="Engine\DotaGameClient.cs" />
<Compile Include="Engine\Game\Data\Entity.cs" />
<Compile Include="Engine\Game\Data\EntityClass.cs" />
<Compile Include="Engine\Game\Data\FlatTable.cs" />
<Compile Include="Engine\Game\Data\Order.cs" />
<Compile Include="Engine\Game\Data\Property.cs" />
<Compile Include="Engine\Game\Data\PropertyClass.cs" />
<Compile Include="Engine\Game\Data\PropertyInfo.cs" />
<Compile Include="Engine\Game\Data\SendTable.cs" />
<Compile Include="Engine\Game\Data\StringTable.cs" />
<Compile Include="Engine\Game\Data\UserCmd.cs" />
<Compile Include="Engine\Game\Data\Value.cs" />
<Compile Include="Engine\Game\Data\Vector.cs" />
<Compile Include="Engine\Game\DotaGameState.cs" />
<Compile Include="Engine\Game\Entities\DotaEntityPool.cs" />
<Compile Include="Engine\Game\Entities\DotaEntitySet.cs" />
<Compile Include="Engine\Game\Entities\Dota\Ability.cs" />
<Compile Include="Engine\Game\Entities\Dota\GameRules.cs" />
<Compile Include="Engine\Game\Entities\Dota\Player.cs" />
<Compile Include="Engine\Game\Entities\Dota\PlayerResource.cs" />
<Compile Include="Engine\Session\Actuators\UserCmdGenerator.cs" />
<Compile Include="Engine\Session\DotaGameConnection.cs" />
<Compile Include="Engine\Session\DotaGameSession.cs" />
<Compile Include="Engine\Session\Handlers\IHandler.cs" />
<Compile Include="Engine\Session\State\Enums\Events.cs" />
<Compile Include="Engine\Session\State\Enums\States.cs" />
<Compile Include="Engine\Session\Handlers\Game\Game.cs" />
<Compile Include="Engine\Session\Handlers\Handshake\DotaHandshake.cs" />
<Compile Include="Engine\Session\Networking\Lzss.cs" />
<Compile Include="Engine\Session\Networking\Stream.cs" />
<Compile Include="Engine\Session\Networking\Subchannel.cs" />
<Compile Include="Engine\Session\Handlers\Signon\DotaSignon.cs" />
<Compile Include="Engine\Session\Unpackers\EntityUpdater.cs" />
<Compile Include="Engine\Session\Unpackers\PropertyValueUnpacker.cs" />
<Compile Include="Engine\Session\Unpackers\SendTableFlattener.cs" />
<Compile Include="Engine\Session\Unpackers\StringTableUpdater.cs" />
<Compile Include="GC\Callbacks.cs" />
<Compile Include="GC\DotaExtensions.cs" />
<Compile Include="GC\DotaGCHandler.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utils\Bitstream.cs" />
<Compile Include="Utils\CrcUtils.cs" />
<Compile Include="Utils\MiscMath.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
Expand Down
12 changes: 5 additions & 7 deletions Dota2/Dota2.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,26 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Dota2</id>
<version>0.2.4</version>
<version>0.3.0</version>
<title>Dota2</title>
<authors>paralin</authors>
<licenseUrl>https://github.com/paralin/Dota2/blob/master/Dota2/license.txt</licenseUrl>
<projectUrl>https://github.com/paralin/Dota2</projectUrl>
<iconUrl>https://raw.github.com/paralin/Dota2/master/Resources/Misc/dota2_logo.jpg</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A plugin for SteamKit that interacts with the DOTA 2 game coordinator and game servers.</description>
<description>A plugin for SteamKit that interacts with the DOTA 2 game coordinator.</description>
<summary />
<releaseNotes>Release notes are available at https://github.com/paralin/Dota2/releases/tag/Dota2_0.2.3</releaseNotes>
<releaseNotes>Release notes are available at https://github.com/paralin/Dota2/releases/tag/Dota2_0.3.0</releaseNotes>
<copyright />
<tags>steam networking steamkit dota dota2</tags>
<dependencies>
<dependency id="protobuf-net" version="[2.0.0.668]" />
<dependency id="Newtonsoft.Json" version="[6.0.0, 8.0.0)" />
<dependency id="Stateless" version="[2.5.0, 2.6.0)" />
<dependency id="Snappy.NET" version="[1.1.1.8, 1.2.0.0)" />
<dependency id="SteamKit2" version="[1.6.2, 2.0.0)" />
<dependency id="SteamKit2" version="[1.6.2, 2.0.0)" />
</dependencies>
</metadata>
<files>
<file src="bin\Release\Dota2.dll" target="lib\net40\Dota2.dll" />
<file src="bin\Release\Dota2.XML" target="lib\net40\Dota2.xml" />
<file src="bin\Release\Dota2.xml" target="lib\net40\Dota2.xml" />
</files>
</package>
Loading

0 comments on commit 1726ea4

Please sign in to comment.