Fixed warnings
This commit is contained in:
parent
e5b7742955
commit
2714503efa
|
@ -41,6 +41,11 @@ project "SHADE_Managed"
|
||||||
"SHADE_Engine"
|
"SHADE_Engine"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disablewarnings
|
||||||
|
{
|
||||||
|
"4251"
|
||||||
|
}
|
||||||
|
|
||||||
defines
|
defines
|
||||||
{
|
{
|
||||||
"NOMINMAX"
|
"NOMINMAX"
|
||||||
|
|
|
@ -24,15 +24,6 @@ of DigiPen Institute of Technology is prohibited.
|
||||||
|
|
||||||
namespace SHADE
|
namespace SHADE
|
||||||
{
|
{
|
||||||
/*---------------------------------------------------------------------------------*/
|
|
||||||
/* Constructor */
|
|
||||||
/*---------------------------------------------------------------------------------*/
|
|
||||||
static EngineInterface::EngineInterface()
|
|
||||||
{
|
|
||||||
exceptionHandler = gcnew System::UnhandledExceptionEventHandler(unhandledExceptionHandler);
|
|
||||||
managedLibPath = System::Reflection::Assembly::GetExecutingAssembly()->Location->Replace("SHADE_Managed.dll", ManagedLibraryName + ".dll");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
/* Interop Static Functions */
|
/* Interop Static Functions */
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
|
@ -98,7 +89,16 @@ namespace SHADE
|
||||||
System::AppDomain::CurrentDomain->UnhandledException -= exceptionHandler;
|
System::AppDomain::CurrentDomain->UnhandledException -= exceptionHandler;
|
||||||
SAFE_NATIVE_CALL_END_N("SHADE_Managed.EngineInterface")
|
SAFE_NATIVE_CALL_END_N("SHADE_Managed.EngineInterface")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------------*/
|
||||||
|
/* Constructor */
|
||||||
|
/*---------------------------------------------------------------------------------*/
|
||||||
|
static EngineInterface::EngineInterface()
|
||||||
|
{
|
||||||
|
exceptionHandler = gcnew System::UnhandledExceptionEventHandler(unhandledExceptionHandler);
|
||||||
|
managedLibPath = System::Reflection::Assembly::GetExecutingAssembly()->Location->Replace("SHADE_Managed.dll", ManagedLibraryName + ".dll");
|
||||||
|
}
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
/* Helper Functions */
|
/* Helper Functions */
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
|
@ -127,7 +127,7 @@ namespace SHADE
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
/* Exception Handler Functions */
|
/* Exception Handler Functions */
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
void EngineInterface::unhandledExceptionHandler(System::Object^ sender, System::UnhandledExceptionEventArgs^ e)
|
void EngineInterface::unhandledExceptionHandler(System::Object^, System::UnhandledExceptionEventArgs^ e)
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
oss << "[EngineInterface] Unhandled managed exception: "
|
oss << "[EngineInterface] Unhandled managed exception: "
|
||||||
|
|
|
@ -32,11 +32,6 @@ namespace SHADE
|
||||||
/// Name of the Managed Library that contains the C# scripts written externally.
|
/// Name of the Managed Library that contains the C# scripts written externally.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
literal System::String^ ManagedLibraryName = "SHADE_Scripting";
|
literal System::String^ ManagedLibraryName = "SHADE_Scripting";
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------*/
|
|
||||||
/* Constructor */
|
|
||||||
/*-----------------------------------------------------------------------------*/
|
|
||||||
static EngineInterface();
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------*/
|
||||||
/* Interop Static Functions */
|
/* Interop Static Functions */
|
||||||
|
@ -68,7 +63,12 @@ namespace SHADE
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static void Exit();
|
static void Exit();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/*-----------------------------------------------------------------------------*/
|
||||||
|
/* Constructor */
|
||||||
|
/*-----------------------------------------------------------------------------*/
|
||||||
|
static EngineInterface();
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------*/
|
||||||
/* Data Members */
|
/* Data Members */
|
||||||
/*-----------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -33,37 +33,37 @@ namespace SHADE
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector2(0, -1).
|
/// Shorthand for writing Vector2(0, -1).
|
||||||
///</summary>
|
///</summary>
|
||||||
static Vector2 Down = Vector2(0.0, -1.0);
|
static initonly Vector2 Down = Vector2(0.0, -1.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector2(-1, 0).
|
/// Shorthand for writing Vector2(-1, 0).
|
||||||
///</summary>
|
///</summary>
|
||||||
static Vector2 Left = Vector2(-1.0, 0.0);
|
static initonly Vector2 Left = Vector2(-1.0, 0.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector2(double.NegativeInfinity,
|
/// Shorthand for writing Vector2(double.NegativeInfinity,
|
||||||
/// double.NegativeInfinity).
|
/// double.NegativeInfinity).
|
||||||
///</summary>
|
///</summary>
|
||||||
static Vector2 NegativeInfinity = Vector2(std::numeric_limits<double>::lowest(), std::numeric_limits<double>::lowest());
|
static initonly Vector2 NegativeInfinity = Vector2(std::numeric_limits<double>::lowest(), std::numeric_limits<double>::lowest());
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector2(1, 1).
|
/// Shorthand for writing Vector2(1, 1).
|
||||||
///</summary>
|
///</summary>
|
||||||
static Vector2 One = Vector2(1.0, 1.0);
|
static initonly Vector2 One = Vector2(1.0, 1.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector2(double.PositiveInfinity,
|
/// Shorthand for writing Vector2(double.PositiveInfinity,
|
||||||
/// double.PositiveInfinity).
|
/// double.PositiveInfinity).
|
||||||
///</summary>
|
///</summary>
|
||||||
static Vector2 PositiveInfinity = Vector2(std::numeric_limits<double>::max(), std::numeric_limits<double>::max());
|
static initonly Vector2 PositiveInfinity = Vector2(std::numeric_limits<double>::max(), std::numeric_limits<double>::max());
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector2(1, 0).
|
/// Shorthand for writing Vector2(1, 0).
|
||||||
///</summary>
|
///</summary>
|
||||||
static Vector2 Right = Vector2(1.0, 0.0);
|
static initonly Vector2 Right = Vector2(1.0, 0.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector2(0, 1).
|
/// Shorthand for writing Vector2(0, 1).
|
||||||
///</summary>
|
///</summary>
|
||||||
static Vector2 Up = Vector2(0.0, 1.0);
|
static initonly Vector2 Up = Vector2(0.0, 1.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector2(0, 0).
|
/// Shorthand for writing Vector2(0, 0).
|
||||||
///</summary>
|
///</summary>
|
||||||
static Vector2 Zero = Vector2(0.0, 0.0);
|
static initonly Vector2 Zero = Vector2(0.0, 0.0);
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -35,49 +35,49 @@ namespace SHADE
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector3(0, 0, -1).
|
/// Shorthand for writing Vector3(0, 0, -1).
|
||||||
///</summary>
|
///</summary>
|
||||||
static const Vector3 Back = Vector3(0.0, 0.0, -1.0);
|
static initonly Vector3 Back = Vector3(0.0, 0.0, -1.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector3(0, -1, 0).
|
/// Shorthand for writing Vector3(0, -1, 0).
|
||||||
///</summary>
|
///</summary>
|
||||||
static const Vector3 Down = Vector3(0.0, -1.0, 0.0);
|
static initonly Vector3 Down = Vector3(0.0, -1.0, 0.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector3(0, 0, 1).
|
/// Shorthand for writing Vector3(0, 0, 1).
|
||||||
///</summary>
|
///</summary>
|
||||||
static const Vector3 Forward = Vector3(0.0, 0.0, 1.0);
|
static initonly Vector3 Forward = Vector3(0.0, 0.0, 1.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector3(-1, 0, 0).
|
/// Shorthand for writing Vector3(-1, 0, 0).
|
||||||
///</summary>
|
///</summary>
|
||||||
static const Vector3 Left = Vector3(-1.0, 0.0, 0.0);
|
static initonly Vector3 Left = Vector3(-1.0, 0.0, 0.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector3(double.NegativeInfinity,
|
/// Shorthand for writing Vector3(double.NegativeInfinity,
|
||||||
/// double.NegativeInfinity, double.NegativeInfinity).
|
/// double.NegativeInfinity, double.NegativeInfinity).
|
||||||
///</summary>
|
///</summary>
|
||||||
static const Vector3 NegativeInfinity = Vector3(std::numeric_limits<double>::lowest(),
|
static initonly Vector3 NegativeInfinity = Vector3(std::numeric_limits<double>::lowest(),
|
||||||
std::numeric_limits<double>::lowest(),
|
std::numeric_limits<double>::lowest(),
|
||||||
std::numeric_limits<double>::lowest());
|
std::numeric_limits<double>::lowest());
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector3(1, 1, 1).
|
/// Shorthand for writing Vector3(1, 1, 1).
|
||||||
///</summary>
|
///</summary>
|
||||||
static const Vector3 One = Vector3(1.0, 1.0, 1.0);
|
static initonly Vector3 One = Vector3(1.0, 1.0, 1.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector3(double.PositiveInfinity,
|
/// Shorthand for writing Vector3(double.PositiveInfinity,
|
||||||
/// double.PositiveInfinity, double.PositiveInfinity).
|
/// double.PositiveInfinity, double.PositiveInfinity).
|
||||||
///</summary>
|
///</summary>
|
||||||
static const Vector3 PositiveInfinity = Vector3(std::numeric_limits<double>::max(),
|
static initonly Vector3 PositiveInfinity = Vector3(std::numeric_limits<double>::max(),
|
||||||
std::numeric_limits<double>::max(),
|
std::numeric_limits<double>::max(),
|
||||||
std::numeric_limits<double>::max());
|
std::numeric_limits<double>::max());
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector3(1, 0, 0).
|
/// Shorthand for writing Vector3(1, 0, 0).
|
||||||
///</summary>
|
///</summary>
|
||||||
static const Vector3 Right = Vector3(1.0, 0.0, 0.0);
|
static initonly Vector3 Right = Vector3(1.0, 0.0, 0.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector3(0, 1, 0).
|
/// Shorthand for writing Vector3(0, 1, 0).
|
||||||
///</summary>
|
///</summary>
|
||||||
static const Vector3 Up = Vector3(0.0, 1.0, 0.0);
|
static initonly Vector3 Up = Vector3(0.0, 1.0, 0.0);
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Shorthand for writing Vector3(0, 0, 0).
|
/// Shorthand for writing Vector3(0, 0, 0).
|
||||||
///</summary>
|
///</summary>
|
||||||
static const Vector3 Zero = Vector3(0.0, 0.0, 0.0);
|
static initonly Vector3 Zero = Vector3(0.0, 0.0, 0.0);
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace SHADE
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
/* Helper Functions */
|
/* Helper Functions */
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
System::Reflection::Assembly^ DisposableAssemblyLoadContext::Load(System::Reflection::AssemblyName^ assemblyName)
|
System::Reflection::Assembly^ DisposableAssemblyLoadContext::Load(System::Reflection::AssemblyName^)
|
||||||
{
|
{
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue