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 System.Collections.Generic;
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework;
namespace TrueCraft.Client.Linux namespace TrueCraft.Client
{ {
[Serializable] [Serializable]
[XmlRoot ( "font" )] [XmlRoot ( "font" )]

View File

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

View File

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

View File

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

View File

@ -4,9 +4,9 @@ using TrueCraft.Core.Networking.Packets;
using TrueCraft.API; using TrueCraft.API;
using TrueCraft.Core.World; using TrueCraft.Core.World;
using MonoGame.Utilities; 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 internal static class ChunkHandler
{ {

View File

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

View File

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

View File

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

View File

@ -7,13 +7,13 @@ using System.Threading;
using TrueCraft.Core.Networking; using TrueCraft.Core.Networking;
using System.Linq; using System.Linq;
using TrueCraft.Core.Networking.Packets; using TrueCraft.Core.Networking.Packets;
using TrueCraft.Client.Linux.Events; using TrueCraft.Client.Events;
using TrueCraft.Core.Logic; using TrueCraft.Core.Logic;
using TrueCraft.API.Entities; using TrueCraft.API.Entities;
using TrueCraft.API; using TrueCraft.API;
using System.ComponentModel; using System.ComponentModel;
namespace TrueCraft.Client.Linux namespace TrueCraft.Client
{ {
public delegate void PacketHandler(IPacket packet, MultiplayerClient 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.Entities;
using TrueCraft.API.World; using TrueCraft.API.World;
using TrueCraft.API; 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 // 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 // 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.Linq;
using System.Net.Sockets; using System.Net.Sockets;
namespace TrueCraft.Client.Linux namespace TrueCraft.Client
{ {
public static class Program public static class Program
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -47,9 +47,9 @@ namespace TrueCraft.Launcher
{ {
var process = new Process(); var process = new Process();
if (RuntimeInfo.IsMono) 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 else
process.StartInfo = new ProcessStartInfo("TrueCraft.Client.Linux.exe", ServerIPText.Text); process.StartInfo = new ProcessStartInfo("TrueCraft.Client.exe", ServerIPText.Text);
process.EnableRaisingEvents = true; process.EnableRaisingEvents = true;
process.Exited += (s, a) => Application.Invoke(ClientExited); process.Exited += (s, a) => Application.Invoke(ClientExited);
process.Start(); process.Start();

View File

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

View File

@ -9,7 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrueCraft.Core", "TrueCraft
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "fNbt", "externals\fNbt\fNbt\fNbt.csproj", "{4488498D-976D-4DA3-BF72-109531AF0488}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "fNbt", "externals\fNbt\fNbt\fNbt.csproj", "{4488498D-976D-4DA3-BF72-109531AF0488}"
EndProject 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 EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrueCraft.Launcher", "TrueCraft.Launcher\TrueCraft.Launcher.csproj", "{6604F17A-552E-405D-B327-37C8B1648C86}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrueCraft.Launcher", "TrueCraft.Launcher\TrueCraft.Launcher.csproj", "{6604F17A-552E-405D-B327-37C8B1648C86}"
EndProject EndProject