parent
c93cefbe9d
commit
37de6068e7
@ -1,7 +1,15 @@ |
|||||||
#Compiles the entire program then runs it, producing an executable. |
#Compiles the entire program then runs it, producing an executable. If the "test" argument is included, will try and run tests too (in the test folder) |
||||||
#C++ |
#C++ |
||||||
printf "Running program...\n\n\n" |
printf "Running program...\n\n\n" |
||||||
if g++ $(find . -type f -name "*.cpp") ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then |
if [ "$1" = "test" ] |
||||||
./${PROJECT_NAME} "$@" |
then |
||||||
|
printf "Running tests...\n" |
||||||
|
if g++ $(find . -type f -name "*.cpp") ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then |
||||||
|
./${PROJECT_NAME} "$@" |
||||||
|
fi |
||||||
|
else |
||||||
|
if g++ $(find . -type f -name "*.cpp" -not -path "./test/*") ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then |
||||||
|
./${PROJECT_NAME} "$@" |
||||||
|
fi |
||||||
fi |
fi |
||||||
printf "\n\n" |
printf "\n\n" |
||||||
|
Binary file not shown.
@ -0,0 +1,53 @@ |
|||||||
|
// The MIT License (MIT)
|
||||||
|
|
||||||
|
// Copyright (c) 2013-2020 Rapptz, ThePhD and contributors
|
||||||
|
|
||||||
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
// this software and associated documentation files (the "Software"), to deal in
|
||||||
|
// the Software without restriction, including without limitation the rights to
|
||||||
|
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
// the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
// subject to the following conditions:
|
||||||
|
|
||||||
|
// The above copyright notice and this permission notice shall be included in all
|
||||||
|
// copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
// This file was generated with a script.
|
||||||
|
// Generated 2022-10-23 03:24:40.304940 UTC
|
||||||
|
// This header was generated with sol v3.3.0 (revision 0386513a)
|
||||||
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
|
#ifndef SOL_SINGLE_CONFIG_HPP |
||||||
|
#define SOL_SINGLE_CONFIG_HPP |
||||||
|
|
||||||
|
// beginning of sol/config.hpp
|
||||||
|
|
||||||
|
/* Base, empty configuration file!
|
||||||
|
|
||||||
|
To override, place a file in your include paths of the form: |
||||||
|
|
||||||
|
. (your include path here) |
||||||
|
| sol (directory, or equivalent) |
||||||
|
| config.hpp (your config.hpp file) |
||||||
|
|
||||||
|
So that when sol2 includes the file |
||||||
|
|
||||||
|
#include <sol/config.hpp> |
||||||
|
|
||||||
|
it gives you the configuration values you desire. Configuration values can be |
||||||
|
seen in the safety.rst of the doc/src, or at |
||||||
|
https://sol2.readthedocs.io/en/latest/safety.html ! You can also pass them through
|
||||||
|
the build system, or the command line options of your compiler. |
||||||
|
|
||||||
|
*/ |
||||||
|
|
||||||
|
// end of sol/config.hpp
|
||||||
|
|
||||||
|
#endif // SOL_SINGLE_CONFIG_HPP
|
@ -0,0 +1,33 @@ |
|||||||
|
return |
||||||
|
{ |
||||||
|
Name = "Weapon", -- used for Engine::GetResearch() |
||||||
|
offset = {0,0}, |
||||||
|
Icon = |
||||||
|
{ |
||||||
|
FileName = "Assets/Research/Icons/WeaponUpgradeIcon.png",--Maybe Have multi_Icon based on lvl of upgrade? |
||||||
|
size = {32,32}, |
||||||
|
FileSize = {64,64} |
||||||
|
}, |
||||||
|
Parameters = |
||||||
|
{ |
||||||
|
Oncer = false, --Only get one upgrade |
||||||
|
InitialCost = 120, |
||||||
|
CostScale = 2, --How Much more it costs per upgrade??? Use Math Equation |
||||||
|
ResearchTime = 22 --Seconds |
||||||
|
}, |
||||||
|
Requirements = |
||||||
|
{ |
||||||
|
Buildings = {"Castle","StoneTower"} |
||||||
|
}, |
||||||
|
Reward = |
||||||
|
{ |
||||||
|
Stats = |
||||||
|
{ |
||||||
|
Damage = 5, |
||||||
|
Armor = 5, |
||||||
|
Health = 10, |
||||||
|
MoveSpeed= 4 |
||||||
|
}, |
||||||
|
Unlocks = {"Archer"} |
||||||
|
} |
||||||
|
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,53 @@ |
|||||||
|
// The MIT License (MIT)
|
||||||
|
|
||||||
|
// Copyright (c) 2013-2020 Rapptz, ThePhD and contributors
|
||||||
|
|
||||||
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
// this software and associated documentation files (the "Software"), to deal in
|
||||||
|
// the Software without restriction, including without limitation the rights to
|
||||||
|
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
// the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
// subject to the following conditions:
|
||||||
|
|
||||||
|
// The above copyright notice and this permission notice shall be included in all
|
||||||
|
// copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
// This file was generated with a script.
|
||||||
|
// Generated 2022-06-25 08:14:19.336233 UTC
|
||||||
|
// This header was generated with sol v3.3.0 (revision eba86625)
|
||||||
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
|
#ifndef SOL_SINGLE_CONFIG_HPP |
||||||
|
#define SOL_SINGLE_CONFIG_HPP |
||||||
|
|
||||||
|
// beginning of sol/config.hpp
|
||||||
|
|
||||||
|
/* Base, empty configuration file!
|
||||||
|
|
||||||
|
To override, place a file in your include paths of the form: |
||||||
|
|
||||||
|
. (your include path here) |
||||||
|
| sol (directory, or equivalent) |
||||||
|
| config.hpp (your config.hpp file) |
||||||
|
|
||||||
|
So that when sol2 includes the file |
||||||
|
|
||||||
|
#include <sol/config.hpp> |
||||||
|
|
||||||
|
it gives you the configuration values you desire. Configuration values can be |
||||||
|
seen in the safety.rst of the doc/src, or at |
||||||
|
https://sol2.readthedocs.io/en/latest/safety.html ! You can also pass them through
|
||||||
|
the build system, or the command line options of your compiler. |
||||||
|
|
||||||
|
*/ |
||||||
|
|
||||||
|
// end of sol/config.hpp
|
||||||
|
|
||||||
|
#endif // SOL_SINGLE_CONFIG_HPP
|
Loading…
Reference in new issue