TrueCraft.Client.Linux -> TrueCraft.Client
@ -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" )]
|
@ -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.
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace TrueCraft.Client.Linux.Events
|
||||
namespace TrueCraft.Client.Events
|
||||
{
|
||||
public class ChatMessageEventArgs : EventArgs
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace TrueCraft.Client.Linux.Events
|
||||
namespace TrueCraft.Client.Events
|
||||
{
|
||||
public class ChunkEventArgs
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace TrueCraft.Client.Linux
|
||||
namespace TrueCraft.Client
|
||||
{
|
||||
public class FontRenderer
|
||||
{
|
@ -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
|
||||
{
|
@ -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
|
||||
{
|
@ -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
|
||||
{
|
@ -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
|
||||
{
|
@ -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);
|
||||
|
@ -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
|
@ -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
|
||||
{
|
@ -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("")]
|
@ -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
|
||||
{
|
@ -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
|
||||
{
|
@ -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
|
||||
{
|
@ -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
|
||||
{
|
@ -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
|
||||
{
|
@ -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
|
||||
{
|
@ -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
|
||||
{
|
@ -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
|
||||
{
|
@ -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>
|
@ -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
|
||||
{
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|