Add SceneReference to C++ scripting API
This commit is contained in:
18
Source/Engine/Content/SceneReference.h
Normal file
18
Source/Engine/Content/SceneReference.h
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Engine/Core/Types/Guid.h"
|
||||
|
||||
/// <summary>
|
||||
/// Represents the reference to the scene asset. Stores the unique ID of the scene to reference. Can be used to load the selected scene.
|
||||
/// </summary>
|
||||
API_STRUCT(NoDefault) struct FLAXENGINE_API SceneReference
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_STRUCTURE(SceneReference);
|
||||
|
||||
/// <summary>
|
||||
/// The identifier of the scene asset (and the scene object).
|
||||
/// </summary>
|
||||
API_FIELD() Guid ID;
|
||||
};
|
||||
@@ -4,16 +4,8 @@ using System;
|
||||
|
||||
namespace FlaxEngine
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the reference to the scene asset. Stores the unique ID of the scene to reference. Can be used to load the selected scene.
|
||||
/// </summary>
|
||||
public struct SceneReference : IComparable, IComparable<Guid>, IComparable<SceneReference>
|
||||
partial struct SceneReference : IComparable, IComparable<Guid>, IComparable<SceneReference>
|
||||
{
|
||||
/// <summary>
|
||||
/// The identifier of the scene asset (and the scene object).
|
||||
/// </summary>
|
||||
public Guid ID;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SceneReference"/> class.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user