This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Numerics; | |
using System.Text; | |
using Veldrid; | |
using Veldrid.SPIRV; | |
namespace Desolation.Graphics | |
{ | |
public unsafe class QuadRenderer : IDisposable | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<Import Project="$(SharedDir)Nullable.props" /> | |
<PropertyGroup> | |
<!-- Treat nullable warnings as errors --> | |
<!-- List found here: https://github.com/dotnet/roslyn/blob/master/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs --> | |
<WarningsAsErrors>$(WarningsAsErrors), CS8600</WarningsAsErrors> | |
<WarningsAsErrors>$(WarningsAsErrors), CS8601</WarningsAsErrors> | |
<WarningsAsErrors>$(WarningsAsErrors), CS8602</WarningsAsErrors> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
using OpenCL.Net; | |
namespace TinkerWorX.Simulation.MonoGame | |
{ | |
public enum D3dDeviceSource : uint | |
{ | |
D3D11_DEVICE = 0x4019, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TileAtlas : IReadOnlyList<Rectangle> | |
{ | |
[MethodImpl(MethodImplOptions.AggressiveInlining)] | |
private static Rectangle IndexToRectangle(int index, int stride, int tileSize) => new Rectangle((index % stride) * tileSize, (index / stride) * tileSize, tileSize, tileSize); | |
private readonly int stride; | |
private readonly int colorCount; | |
public TileAtlas(GraphicsDevice graphicsDevice, int tileSize, int atlasSize = 4096) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ========== READONLY =========== */ | |
/* == CHANGES WILL BE DISCARDED == */ | |
/* ========== READONLY =========== */ | |
#define HEAL_ID 'u000' | |
#define MIN_DAMAGE_ID 'u001' | |
#define MAX_DAMAGE_ID 'u002' | |
#define ARMOR_ID 'u003' | |
#define BUILDER_ID 'u004' | |
#define VILLAGER_ID 'u005' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
namespace Ultralight.Net.Interop | |
{ | |
[StructLayout(LayoutKind.Sequential)] | |
public struct Platform | |
{ | |
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] | |
public delegate IntPtr GetterDelegate(IntPtr that); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
namespace Ultralight.Net | |
{ | |
public class ClConfig : IDisposable | |
{ | |
[StructLayout(LayoutKind.Sequential)] | |
private struct C_Config | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFrameworks>net45;netcoreapp3.0</TargetFrameworks> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45'"> | |
<DefineConstants>$(DefineConstants);NETFULL</DefineConstants> | |
</PropertyGroup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- === START OF DO NOT MODIFY THIS === | |
#include "../out/war3map.lua" | |
-- === END OF DO NOT MODIFY THIS === | |
#define DEBUG 1 | |
#include "log.lua" | |
#include "hacks.lua" | |
#include "map.lua" | |
#include "3rdParty/SimplexNoise.lua" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<Target Name="PostBuild" AfterTargets="PostBuildEvent"> | |
<PropertyGroup> | |
<MonoGamePlatform>Windows</MonoGamePlatform> | |
<MonoGameContentCommand>"$(SolutionDir)3rdParty\MonoGame.Content.Builder\MGCB.exe"</MonoGameContentCommand> | |
<MonoGameContentFile>/@:"$(MSBuildThisFileDirectory)\Content.mgcb"</MonoGameContentFile> | |
<MonoGameContentObject>/intermediateDir:"$(ProjectDir)obj\$(PlatformName)\$(ConfigurationName)\$(TargetFramework)\Content"</MonoGameContentObject> | |
<MonoGameContentOutput>/outputDir:"$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)\$(TargetFramework)\Content"</MonoGameContentOutput> | |
</PropertyGroup> |
NewerOlder