TrueCraft.Client.Linux -> TrueCraft.Client

This commit is contained in:
Drew DeVault 2015-05-16 21:50:10 -06:00
parent d330212eee
commit df566e6d76
34 changed files with 41 additions and 42 deletions

View File

@ -9,7 +9,7 @@ using System.Xml.Serialization;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
namespace TrueCraft.Client.Linux
namespace TrueCraft.Client
{
[Serializable]
[XmlRoot ( "font" )]

View File

@ -2,7 +2,7 @@
using System.Collections.Concurrent;
using System.Threading;
using System.Linq;
using TrueCraft.Client.Linux.Rendering;
using TrueCraft.Client.Rendering;
using TrueCraft.Core.World;
using TrueCraft.API;
using System.Collections.Generic;
@ -12,7 +12,7 @@ using Vector2 = Microsoft.Xna.Framework.Vector2;
using Vector3 = Microsoft.Xna.Framework.Vector3;
using TrueCraft.API.Logic;
namespace TrueCraft.Client.Linux
namespace TrueCraft.Client
{
/// <summary>
/// A daemon of sorts that creates meshes from chunks.

View File

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -1,6 +1,6 @@
using System;
namespace TrueCraft.Client.Linux.Events
namespace TrueCraft.Client.Events
{
public class ChatMessageEventArgs : EventArgs
{

View File

@ -1,6 +1,6 @@
using System;
namespace TrueCraft.Client.Linux.Events
namespace TrueCraft.Client.Events
{
public class ChunkEventArgs
{

View File

@ -2,7 +2,7 @@
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace TrueCraft.Client.Linux
namespace TrueCraft.Client
{
public class FontRenderer
{

View File

@ -4,9 +4,9 @@ using TrueCraft.Core.Networking.Packets;
using TrueCraft.API;
using TrueCraft.Core.World;
using MonoGame.Utilities;
using TrueCraft.Client.Linux.Events;
using TrueCraft.Client.Events;
namespace TrueCraft.Client.Linux.Handlers
namespace TrueCraft.Client.Handlers
{
internal static class ChunkHandler
{

View File

@ -2,10 +2,10 @@
using TrueCraft.API.Networking;
using TrueCraft.Core.Networking.Packets;
using TrueCraft.Core.Networking;
using TrueCraft.Client.Linux.Events;
using TrueCraft.Client.Events;
using TrueCraft.API;
namespace TrueCraft.Client.Linux.Handlers
namespace TrueCraft.Client.Handlers
{
internal static class PacketHandlers
{

View File

@ -1,10 +1,10 @@
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using TrueCraft.Client.Linux.Events;
using TrueCraft.Client.Events;
using System.Collections.Generic;
namespace TrueCraft.Client.Linux.Interface
namespace TrueCraft.Client.Interface
{
public class ChatInterface : IGameInterface
{

View File

@ -2,7 +2,7 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace TrueCraft.Client.Linux.Interface
namespace TrueCraft.Client.Interface
{
public interface IGameInterface
{

View File

@ -7,13 +7,13 @@ using System.Threading;
using TrueCraft.Core.Networking;
using System.Linq;
using TrueCraft.Core.Networking.Packets;
using TrueCraft.Client.Linux.Events;
using TrueCraft.Client.Events;
using TrueCraft.Core.Logic;
using TrueCraft.API.Entities;
using TrueCraft.API;
using System.ComponentModel;
namespace TrueCraft.Client.Linux
namespace TrueCraft.Client
{
public delegate void PacketHandler(IPacket packet, MultiplayerClient client);

View File

@ -6,9 +6,8 @@ using TrueCraft.Core.World;
using TrueCraft.API.Entities;
using TrueCraft.API.World;
using TrueCraft.API;
using TrueCraft.Client.Linux;
namespace TrueCraft
namespace TrueCraft.Client
{
// This is a stripped down version of the physics engine that the server uses
// The only thing we use it for is our own movement

View File

@ -3,7 +3,7 @@ using System.Net;
using System.Linq;
using System.Net.Sockets;
namespace TrueCraft.Client.Linux
namespace TrueCraft.Client
{
public static class Program
{

View File

@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("TrueCraft.Client.Linux")]
[assembly: AssemblyTitle("TrueCraft.Client")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]

View File

@ -7,7 +7,7 @@ using TrueCraft.API.World;
using TrueCraft.Core.World;
using TrueCraft.API;
namespace TrueCraft.Client.Linux
namespace TrueCraft.Client
{
public class ReadOnlyWorld
{

View File

@ -5,7 +5,7 @@ using TrueCraft.Core.Logic;
using TrueCraft.API.Logic;
using System.Linq;
namespace TrueCraft.Client.Linux.Rendering
namespace TrueCraft.Client.Rendering
{
public class BlockRenderer
{

View File

@ -4,7 +4,7 @@ using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using TrueCraft.API.Logic;
namespace TrueCraft.Client.Linux.Rendering.Blocks
namespace TrueCraft.Client.Rendering.Blocks
{
public class CraftingTableRenderer : BlockRenderer
{

View File

@ -4,7 +4,7 @@ using Microsoft.Xna.Framework;
using TrueCraft.Core.Logic.Blocks;
using TrueCraft.API.Logic;
namespace TrueCraft.Client.Linux.Rendering.Blocks
namespace TrueCraft.Client.Rendering.Blocks
{
public class GrassRenderer : BlockRenderer
{

View File

@ -4,7 +4,7 @@ using Microsoft.Xna.Framework;
using TrueCraft.Core.Logic.Blocks;
using TrueCraft.API.Logic;
namespace TrueCraft.Client.Linux.Rendering.Blocks
namespace TrueCraft.Client.Rendering.Blocks
{
public class SnowRenderer : BlockRenderer
{

View File

@ -4,7 +4,7 @@ using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using TrueCraft.API.Logic;
namespace TrueCraft.Client.Linux.Rendering.Blocks
namespace TrueCraft.Client.Rendering.Blocks
{
public class TNTRenderer : BlockRenderer
{

View File

@ -4,7 +4,7 @@ using Microsoft.Xna.Framework;
using TrueCraft.Core.Logic.Blocks;
using TrueCraft.API.Logic;
namespace TrueCraft.Client.Linux.Rendering.Blocks
namespace TrueCraft.Client.Rendering.Blocks
{
public class TorchRenderer : BlockRenderer
{

View File

@ -3,7 +3,7 @@ using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using System.Linq;
namespace TrueCraft.Client.Linux.Rendering
namespace TrueCraft.Client.Rendering
{
public class Mesh
{

View File

@ -7,8 +7,8 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{A6516869-A2FB-4E31-85C8-2285490CB32C}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>TrueCraft.Client.Linux</RootNamespace>
<AssemblyName>TrueCraft.Client.Linux</AssemblyName>
<RootNamespace>TrueCraft.Client</RootNamespace>
<AssemblyName>TrueCraft.Client</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
@ -143,4 +143,4 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
</Project>

View File

@ -3,15 +3,15 @@ using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Graphics;
using System.Collections.Generic;
using TrueCraft.Client.Linux.Interface;
using TrueCraft.Client.Interface;
using System.IO;
using System.Net;
using TrueCraft.API;
using TrueCraft.Client.Linux.Rendering;
using TrueCraft.Client.Rendering;
using System.Linq;
using System.ComponentModel;
namespace TrueCraft.Client.Linux
namespace TrueCraft.Client
{
public class TrueCraftGame : Game
{

View File

@ -47,9 +47,9 @@ namespace TrueCraft.Launcher
{
var process = new Process();
if (RuntimeInfo.IsMono)
process.StartInfo = new ProcessStartInfo("mono", "TrueCraft.Client.Linux.exe " + ServerIPText.Text);
process.StartInfo = new ProcessStartInfo("mono", "TrueCraft.Client.exe " + ServerIPText.Text);
else
process.StartInfo = new ProcessStartInfo("TrueCraft.Client.Linux.exe", ServerIPText.Text);
process.StartInfo = new ProcessStartInfo("TrueCraft.Client.exe", ServerIPText.Text);
process.EnableRaisingEvents = true;
process.Exited += (s, a) => Application.Invoke(ClientExited);
process.Start();
@ -63,4 +63,4 @@ namespace TrueCraft.Launcher
this.ShowInTaskbar = true;
}
}
}
}

View File

@ -58,10 +58,6 @@
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TrueCraft.Client.Linux\TrueCraft.Client.Linux.csproj">
<Project>{A6516869-A2FB-4E31-85C8-2285490CB32C}</Project>
<Name>TrueCraft.Client.Linux</Name>
</ProjectReference>
<ProjectReference Include="..\TrueCraft.API\TrueCraft.API.csproj">
<Project>{FEE55B54-91B0-4325-A2C3-D576C0B7A81F}</Project>
<Name>TrueCraft.API</Name>
@ -78,8 +74,12 @@
<Project>{4488498D-976D-4DA3-BF72-109531AF0488}</Project>
<Name>fNbt</Name>
</ProjectReference>
<ProjectReference Include="..\TrueCraft.Client\TrueCraft.Client.csproj">
<Project>{A6516869-A2FB-4E31-85C8-2285490CB32C}</Project>
<Name>TrueCraft.Client</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Content\" />
</ItemGroup>
</Project>
</Project>

View File

@ -9,7 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrueCraft.Core", "TrueCraft
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "fNbt", "externals\fNbt\fNbt\fNbt.csproj", "{4488498D-976D-4DA3-BF72-109531AF0488}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrueCraft.Client.Linux", "TrueCraft.Client.Linux\TrueCraft.Client.Linux.csproj", "{A6516869-A2FB-4E31-85C8-2285490CB32C}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrueCraft.Client", "TrueCraft.Client\TrueCraft.Client.csproj", "{A6516869-A2FB-4E31-85C8-2285490CB32C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrueCraft.Launcher", "TrueCraft.Launcher\TrueCraft.Launcher.csproj", "{6604F17A-552E-405D-B327-37C8B1648C86}"
EndProject