r2mods/ilspy_dump/ror2_csproj/SceneField.cs

30 lines
523 B
C#

using System;
using UnityEngine;
[Serializable]
public class SceneField
{
[SerializeField]
private UnityEngine.Object sceneAsset;
[SerializeField]
private string sceneName = "";
public string SceneName => sceneName;
public SceneField(string sceneName)
{
this.sceneName = sceneName;
}
public static implicit operator string(SceneField sceneField)
{
return sceneField.sceneName;
}
public static implicit operator bool(SceneField sceneField)
{
return !string.IsNullOrEmpty(sceneField.sceneName);
}
}