SPEC-7531 Change Code/CryEngine to Code/Legacy (#1634)
* git mv Code\CryEngine Code\Legacy * redirecting CMakeLists.txt * fixing uic warning * Some more CryEngine mentions * validation scripts Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "CrySystem_precompiled.h"
|
||||
#include "CmdLineArg.h"
|
||||
|
||||
|
||||
CCmdLineArg::CCmdLineArg(const char* name, const char* value, ECmdLineArgType type)
|
||||
{
|
||||
m_name = name;
|
||||
m_value = value;
|
||||
m_type = type;
|
||||
}
|
||||
|
||||
CCmdLineArg::~CCmdLineArg()
|
||||
{
|
||||
}
|
||||
|
||||
const char* CCmdLineArg::GetName() const
|
||||
{
|
||||
return m_name.c_str();
|
||||
}
|
||||
const char* CCmdLineArg::GetValue() const
|
||||
{
|
||||
return m_value.c_str();
|
||||
}
|
||||
const ECmdLineArgType CCmdLineArg::GetType() const
|
||||
{
|
||||
return m_type;
|
||||
}
|
||||
const float CCmdLineArg::GetFValue() const
|
||||
{
|
||||
return (float)atof(m_value.c_str());
|
||||
}
|
||||
const int CCmdLineArg::GetIValue() const
|
||||
{
|
||||
return atoi(m_value.c_str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user