-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
875 changed files
with
69,014 additions
and
1,124 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Provision/Start M2TWEOP Server | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ec2-name: | ||
description: The Medieval 2 Engine Overhaul Project Server | ||
required: true | ||
default: 'M2TWEOP Server' | ||
type: string | ||
jobs: | ||
provision-ec2: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14' | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: '${{ secrets.TF_USER_AWS_KEY }}' | ||
aws-secret-access-key: '${{ secrets.TF_USER_AWS_SECRET }}' | ||
aws-region: eu-west-1 | ||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v2 | ||
with: | ||
terraform_wrapper: false | ||
- name: Terraform Apply | ||
id: apply | ||
env: | ||
TF_VAR_ec2_name: "${{ github.event.inputs.ec2-name }}" | ||
run: | | ||
cd "M2TWEOP Server/terraform" | ||
terraform init | ||
terraform validate | ||
terraform plan | ||
terraform apply -auto-approve |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Extracting, building and integrating selected boost libs for m2tweop: | ||
1)download boost 1.76 | ||
2)unpack | ||
3)open cmd.exe in unpacked lib | ||
4)run this commands: | ||
b2 -j 8 tools\bcp | ||
mkdir M2TWEOPBoost | ||
.\dist\bin\bcp process interprocess filesystem type_index fusion atomic bind type_traits build M2TWEOPBoost | ||
cd M2TWEOPBoost | ||
.\bootstrap.bat | ||
.\b2 --build-dir=libs threading=multi address-model=32 | ||
5)copy M2TWEOPBoost/boost from builded boost to M2TWEOP Code\3rd\M2TWEOPBoost\boost | ||
6)copy M2TWEOPBoost/stage/ib from builded boost to M2TWEOP Code\3rd\M2TWEOPBoost\boostLibs \ |
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#ifndef BOOST_BIND_APPLY_HPP_INCLUDED | ||
#define BOOST_BIND_APPLY_HPP_INCLUDED | ||
|
||
// | ||
// apply.hpp | ||
// | ||
// Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd. | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. (See | ||
// accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
// | ||
|
||
#include <boost/config.hpp> | ||
|
||
namespace boost | ||
{ | ||
|
||
template<class R> struct apply | ||
{ | ||
typedef R result_type; | ||
|
||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) | ||
|
||
template<class F, class... A> result_type operator()( F&& f, A&&... a ) const | ||
{ | ||
return static_cast<F&&>( f )( static_cast<A&&>( a )... ); | ||
} | ||
|
||
#else | ||
|
||
template<class F> result_type operator()(F & f) const | ||
{ | ||
return f(); | ||
} | ||
|
||
template<class F, class A1> result_type operator()(F & f, A1 & a1) const | ||
{ | ||
return f(a1); | ||
} | ||
|
||
template<class F, class A1, class A2> result_type operator()(F & f, A1 & a1, A2 & a2) const | ||
{ | ||
return f(a1, a2); | ||
} | ||
|
||
template<class F, class A1, class A2, class A3> result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3) const | ||
{ | ||
return f(a1, a2, a3); | ||
} | ||
|
||
template<class F, class A1, class A2, class A3, class A4> result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4) const | ||
{ | ||
return f(a1, a2, a3, a4); | ||
} | ||
|
||
template<class F, class A1, class A2, class A3, class A4, class A5> result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5) const | ||
{ | ||
return f(a1, a2, a3, a4, a5); | ||
} | ||
|
||
template<class F, class A1, class A2, class A3, class A4, class A5, class A6> result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6) const | ||
{ | ||
return f(a1, a2, a3, a4, a5, a6); | ||
} | ||
|
||
template<class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7> result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7) const | ||
{ | ||
return f(a1, a2, a3, a4, a5, a6, a7); | ||
} | ||
|
||
template<class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8> result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7, A8 & a8) const | ||
{ | ||
return f(a1, a2, a3, a4, a5, a6, a7, a8); | ||
} | ||
|
||
template<class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9> result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7, A8 & a8, A9 & a9) const | ||
{ | ||
return f(a1, a2, a3, a4, a5, a6, a7, a8, a9); | ||
} | ||
|
||
#endif | ||
}; | ||
|
||
} // namespace boost | ||
|
||
#endif // #ifndef BOOST_BIND_APPLY_HPP_INCLUDED |
187 changes: 187 additions & 0 deletions
187
M2TWEOP Code/3rd/M2TWEOPBoost/boost/bind/make_adaptable.hpp
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 |
---|---|---|
@@ -0,0 +1,187 @@ | ||
#ifndef BOOST_BIND_MAKE_ADAPTABLE_HPP_INCLUDED | ||
#define BOOST_BIND_MAKE_ADAPTABLE_HPP_INCLUDED | ||
|
||
// | ||
// make_adaptable.hpp | ||
// | ||
// Copyright (c) 2002 Peter Dimov and Multi Media Ltd. | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. (See | ||
// accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
// | ||
|
||
namespace boost | ||
{ | ||
|
||
namespace _bi | ||
{ | ||
|
||
template<class R, class F> class af0 | ||
{ | ||
public: | ||
|
||
typedef R result_type; | ||
|
||
explicit af0(F f): f_(f) | ||
{ | ||
} | ||
|
||
result_type operator()() | ||
{ | ||
return f_(); | ||
} | ||
|
||
result_type operator()() const | ||
{ | ||
return f_(); | ||
} | ||
|
||
private: | ||
|
||
F f_; | ||
}; | ||
|
||
template<class R, class A1, class F> class af1 | ||
{ | ||
public: | ||
|
||
typedef R result_type; | ||
typedef A1 argument_type; | ||
typedef A1 arg1_type; | ||
|
||
explicit af1(F f): f_(f) | ||
{ | ||
} | ||
|
||
result_type operator()(A1 a1) | ||
{ | ||
return f_(a1); | ||
} | ||
|
||
result_type operator()(A1 a1) const | ||
{ | ||
return f_(a1); | ||
} | ||
|
||
private: | ||
|
||
F f_; | ||
}; | ||
|
||
template<class R, class A1, class A2, class F> class af2 | ||
{ | ||
public: | ||
|
||
typedef R result_type; | ||
typedef A1 first_argument_type; | ||
typedef A2 second_argument_type; | ||
typedef A1 arg1_type; | ||
typedef A2 arg2_type; | ||
|
||
explicit af2(F f): f_(f) | ||
{ | ||
} | ||
|
||
result_type operator()(A1 a1, A2 a2) | ||
{ | ||
return f_(a1, a2); | ||
} | ||
|
||
result_type operator()(A1 a1, A2 a2) const | ||
{ | ||
return f_(a1, a2); | ||
} | ||
|
||
private: | ||
|
||
F f_; | ||
}; | ||
|
||
template<class R, class A1, class A2, class A3, class F> class af3 | ||
{ | ||
public: | ||
|
||
typedef R result_type; | ||
typedef A1 arg1_type; | ||
typedef A2 arg2_type; | ||
typedef A3 arg3_type; | ||
|
||
explicit af3(F f): f_(f) | ||
{ | ||
} | ||
|
||
result_type operator()(A1 a1, A2 a2, A3 a3) | ||
{ | ||
return f_(a1, a2, a3); | ||
} | ||
|
||
result_type operator()(A1 a1, A2 a2, A3 a3) const | ||
{ | ||
return f_(a1, a2, a3); | ||
} | ||
|
||
private: | ||
|
||
F f_; | ||
}; | ||
|
||
template<class R, class A1, class A2, class A3, class A4, class F> class af4 | ||
{ | ||
public: | ||
|
||
typedef R result_type; | ||
typedef A1 arg1_type; | ||
typedef A2 arg2_type; | ||
typedef A3 arg3_type; | ||
typedef A4 arg4_type; | ||
|
||
explicit af4(F f): f_(f) | ||
{ | ||
} | ||
|
||
result_type operator()(A1 a1, A2 a2, A3 a3, A4 a4) | ||
{ | ||
return f_(a1, a2, a3, a4); | ||
} | ||
|
||
result_type operator()(A1 a1, A2 a2, A3 a3, A4 a4) const | ||
{ | ||
return f_(a1, a2, a3, a4); | ||
} | ||
|
||
private: | ||
|
||
F f_; | ||
}; | ||
|
||
} // namespace _bi | ||
|
||
template<class R, class F> _bi::af0<R, F> make_adaptable(F f) | ||
{ | ||
return _bi::af0<R, F>(f); | ||
} | ||
|
||
template<class R, class A1, class F> _bi::af1<R, A1, F> make_adaptable(F f) | ||
{ | ||
return _bi::af1<R, A1, F>(f); | ||
} | ||
|
||
template<class R, class A1, class A2, class F> _bi::af2<R, A1, A2, F> make_adaptable(F f) | ||
{ | ||
return _bi::af2<R, A1, A2, F>(f); | ||
} | ||
|
||
template<class R, class A1, class A2, class A3, class F> _bi::af3<R, A1, A2, A3, F> make_adaptable(F f) | ||
{ | ||
return _bi::af3<R, A1, A2, A3, F>(f); | ||
} | ||
|
||
template<class R, class A1, class A2, class A3, class A4, class F> _bi::af4<R, A1, A2, A3, A4, F> make_adaptable(F f) | ||
{ | ||
return _bi::af4<R, A1, A2, A3, A4, F>(f); | ||
} | ||
|
||
} // namespace boost | ||
|
||
#endif // #ifndef BOOST_BIND_MAKE_ADAPTABLE_HPP_INCLUDED |
Oops, something went wrong.