40 lines
1.5 KiB
C++
40 lines
1.5 KiB
C++
/************************************************************************************//*!
|
|
\file RangeAttribute.cxx
|
|
\author Tng Kah Wei, kahwei.tng, 390009620
|
|
\par email: kahwei.tng\@digipen.edu
|
|
\date Oct 18, 2022
|
|
\brief Contains the definition of the functions of the managed Range Attribute
|
|
class.
|
|
|
|
Note: This file is written in C++17/CLI.
|
|
|
|
Copyright (C) 2022 DigiPen Institute of Technology.
|
|
Reproduction or disclosure of this file or its contents without the prior written consent
|
|
of DigiPen Institute of Technology is prohibited.
|
|
*//*************************************************************************************/
|
|
#include "SHpch.h"
|
|
#include "RangeAttribute.hxx"
|
|
|
|
namespace SHADE
|
|
{
|
|
/*---------------------------------------------------------------------------------*/
|
|
/* Properties */
|
|
/*---------------------------------------------------------------------------------*/
|
|
float RangeAttribute::Min::get()
|
|
{
|
|
return minVal;
|
|
}
|
|
float RangeAttribute::Max::get()
|
|
{
|
|
return maxVal;
|
|
}
|
|
|
|
/*---------------------------------------------------------------------------------*/
|
|
/* Constructors */
|
|
/*---------------------------------------------------------------------------------*/
|
|
RangeAttribute::RangeAttribute(float min, float max)
|
|
: minVal { min }
|
|
, maxVal { max }
|
|
{}
|
|
}
|