From 6b9647e287cfefa071d9b6b53f40e3b59343cbb7 Mon Sep 17 00:00:00 2001 From: Mihail Zdravkov Date: Sat, 28 May 2016 12:38:12 +0300 Subject: [PATCH 1/2] Fixes for D version 2.071 --- source/tharsis/entity/entitymanager.d | 4 ++-- source/tharsis/entity/processwrapper.d | 4 +++- source/tharsis/entity/prototypemanager.d | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/source/tharsis/entity/entitymanager.d b/source/tharsis/entity/entitymanager.d index a74feab..232325d 100644 --- a/source/tharsis/entity/entitymanager.d +++ b/source/tharsis/entity/entitymanager.d @@ -103,7 +103,7 @@ package: // Set by EntityManager to signify that the thread should stop. Stopping, // The thread is stopped, or never ran in the first place. - Stopped, + Stopped } private: @@ -618,7 +618,7 @@ package: { return manager.rawHandle(descriptor); } - assert(false, "No resource manager for type " ~ to!string(type)); + assert(false, "No resource manager for type " ~ std.conv.to!string(type)); } private: diff --git a/source/tharsis/entity/processwrapper.d b/source/tharsis/entity/processwrapper.d index 3aa50f2..ef417e9 100644 --- a/source/tharsis/entity/processwrapper.d +++ b/source/tharsis/entity/processwrapper.d @@ -10,6 +10,8 @@ module tharsis.entity.processwrapper; import std.algorithm; import tharsis.entity.entitymanager; +import tharsis.prof; + package: @@ -146,7 +148,7 @@ public: } -import std.algorithm: join; +import std.array: join; import std.string: format; import std.traits; diff --git a/source/tharsis/entity/prototypemanager.d b/source/tharsis/entity/prototypemanager.d index f899d24..bfa3bda 100644 --- a/source/tharsis/entity/prototypemanager.d +++ b/source/tharsis/entity/prototypemanager.d @@ -17,6 +17,7 @@ import tharsis.entity.resource; import tharsis.entity.resourcemanager; import tharsis.util.interfaces; import tharsis.util.qualifierhacks; +import tharsis.util.pagedarray; // TODO: Add a method to specify resources to preload at start instead of always loading From 6581d590fc191bc1bcc6db6138408af974906b9a Mon Sep 17 00:00:00 2001 From: Mihail Zdravkov Date: Sat, 28 May 2016 13:05:02 +0300 Subject: [PATCH 2/2] Add a missing import std.algorithm.sorting was missing and the function `sort` could not be found --- source/tharsis/std/random.d | 1 + 1 file changed, 1 insertion(+) diff --git a/source/tharsis/std/random.d b/source/tharsis/std/random.d index f2c4e52..d9c9135 100644 --- a/source/tharsis/std/random.d +++ b/source/tharsis/std/random.d @@ -11,6 +11,7 @@ public import std.random; import std.range; +import std.algorithm.sorting; /** Covers a given range $(D r) in a random manner, i.e. goes through each