1
This commit is contained in:
33
Src/Core/WorldNode/WorldInfoNode.cs
Normal file
33
Src/Core/WorldNode/WorldInfoNode.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
using UnityEngine;
|
||||
#endif
|
||||
namespace BITKit.WorldNode
|
||||
{
|
||||
[Serializable]
|
||||
public class WorldInfoNode : IWorldNode
|
||||
{
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
[SerializeReference, SubclassSelector]
|
||||
|
||||
private IReference name;
|
||||
[SerializeReference, SubclassSelector]
|
||||
private IReference description;
|
||||
|
||||
public string Name
|
||||
{
|
||||
get => name?.Value;
|
||||
set => name = new Reference(value);
|
||||
}
|
||||
|
||||
public string Description
|
||||
{
|
||||
get => description?.Value;
|
||||
set=>description = new Reference(value);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user