Merge remote-tracking branch 'origin/main' into SP3-2-Physics
This commit is contained in:
commit
1cfd3cfd3a
|
@ -41,7 +41,7 @@ namespace SHADE
|
||||||
class SH_API CameraSystemUpdate final: public SHSystemRoutine
|
class SH_API CameraSystemUpdate final: public SHSystemRoutine
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CameraSystemUpdate() : SHSystemRoutine("Camera System Update", true) {};
|
CameraSystemUpdate() : SHSystemRoutine("Camera System Update", false) {};
|
||||||
virtual void Execute(double dt)noexcept override final;
|
virtual void Execute(double dt)noexcept override final;
|
||||||
};
|
};
|
||||||
friend class CameraSystemUpdate;
|
friend class CameraSystemUpdate;
|
||||||
|
|
|
@ -22,6 +22,14 @@ of DigiPen Institute of Technology is prohibited.
|
||||||
|
|
||||||
namespace SHADE
|
namespace SHADE
|
||||||
{
|
{
|
||||||
|
/*---------------------------------------------------------------------------------*/
|
||||||
|
/* Properties */
|
||||||
|
/*---------------------------------------------------------------------------------*/
|
||||||
|
GameObject BaseComponent::Owner::get()
|
||||||
|
{
|
||||||
|
return owner;
|
||||||
|
}
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
/* Component Access Functions */
|
/* Component Access Functions */
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace SHADE
|
||||||
/// </summary>
|
/// </summary>
|
||||||
property GameObject Owner
|
property GameObject Owner
|
||||||
{
|
{
|
||||||
GameObject get() { return owner; }
|
GameObject get();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------*/
|
||||||
|
@ -166,6 +166,19 @@ namespace SHADE
|
||||||
template<typename NativeType>
|
template<typename NativeType>
|
||||||
public ref class Component : public BaseComponent
|
public ref class Component : public BaseComponent
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
/*-----------------------------------------------------------------------------*/
|
||||||
|
/* Properties */
|
||||||
|
/*-----------------------------------------------------------------------------*/
|
||||||
|
/// <summary>
|
||||||
|
/// Whether or not the Component is active and being updated by the engine.
|
||||||
|
/// </summary>
|
||||||
|
property bool Enabled
|
||||||
|
{
|
||||||
|
bool get() { return GetNativeComponent()->isActive; }
|
||||||
|
void set(bool value) { GetNativeComponent()->isActive = value; }
|
||||||
|
}
|
||||||
|
|
||||||
internal:
|
internal:
|
||||||
/*-----------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------*/
|
||||||
/* Type Definitions */
|
/* Type Definitions */
|
||||||
|
|
Loading…
Reference in New Issue