-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added Tracy.exe to Resources - Build Game as a lib (use Game-App to launch the game) - Fixed an issue where Edit and Continue flag was enabled (It is now disabled, thank you) - Implemented a better (but temporary) queue system for dirty instances for the Animation System - Fixed an issue in ModelRenderer where BoneMatrices and TextureTransformMatrices were not properly initialized to identity matrices - Removed LoaderSystem (Manually calling ClientDBLoader and TextureLoader now)
- Loading branch information
Showing
14 changed files
with
272 additions
and
343 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,47 @@ | ||
local basePath = path.getabsolute("Game/", Game.projectsDir) | ||
|
||
local dependencies = { "base", "fileformat", "input", "network", "renderer", "luau-compiler", "luau-vm", "jolt", "enkiTS", "refl-cpp", "utfcpp", "base64" } | ||
local defines = { "_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS", "_SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS", "WIN32_LEAN_AND_MEAN", "NOMINMAX" } | ||
ProjectTemplate("Game", "ConsoleApp", ".", Game.binDir, dependencies, defines) | ||
|
||
local shaderSourceDir = BuildSettings:Get("Shader Source Dir") | ||
if shaderSourceDir == nil then | ||
error("Failed to find Shader Source Dir, this setting is supposed to be set during the creation of the shaders project") | ||
end | ||
|
||
AddDefines("SHADER_SOURCE_DIR=\"" .. shaderSourceDir .. "\"") | ||
local function SetupLib() | ||
ProjectTemplate("Game", "StaticLib", nil, Game.binDir, dependencies, defines) | ||
|
||
filter { 'system:Windows' } | ||
files { 'appicon.rc', '**.ico' } | ||
vpaths { ['Resources/*'] = { '*.rc', '**.ico' } } | ||
|
||
local function Include() | ||
local includeDir = path.getabsolute("Game/", Game.projectsDir) | ||
local sourceDir = path.getabsolute("Game/", includeDir) | ||
local sourceDir = path.getabsolute("Game", basePath) | ||
local includeDir = { basePath } | ||
|
||
local files = | ||
{ | ||
(sourceDir .. "/**.h"), | ||
(sourceDir .. "/**.hpp"), | ||
(sourceDir .. "/**.cpp") | ||
sourceDir .. "/**.h", | ||
sourceDir .. "/**.hpp", | ||
sourceDir .. "/**.c", | ||
sourceDir .. "/**.cpp" | ||
} | ||
|
||
AddFiles(files) | ||
AddIncludeDirs(includeDir) | ||
AddDefines("SHADER_SOURCE_DIR=\"" .. shaderSourceDir .. "\"") | ||
end | ||
SetupLib() | ||
|
||
local function Include() | ||
local includeDir = path.getabsolute("Game/", Game.projectsDir) | ||
|
||
AddIncludeDirs(includeDir) | ||
AddDefines({"WIN32_LEAN_AND_MEAN", "NOMINMAX", ("SHADER_SOURCE_DIR=\"" .. shaderSourceDir .. "\"")}) | ||
AddLinks("Game") | ||
end | ||
CreateDep("game", Include, dependencies) | ||
CreateDep("game", Include, dependencies) | ||
|
||
ProjectTemplate("Game-App", "ConsoleApp", nil, Game.binDir, { "game" }, defines) | ||
|
||
AddFiles({basePath .. "/main.cpp"}) | ||
vpaths { [""] = "**.cpp" } | ||
|
||
filter { 'system:Windows' } | ||
files { 'appicon.rc', '**.ico' } | ||
vpaths { ['Resources/*'] = { '*.rc', '**.ico' } } |
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
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.