Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 40b3e8a

Browse files
Implemented BaseVariable
1 parent 085092a commit 40b3e8a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Assets/SO Architecture/Variables/BaseVariable.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ public interface IBaseVariable
44
{
55
System.Type Type { get; }
66
}
7-
public abstract class BaseVariable<T> : SOArchitectureBaseObject, IBaseVariable
7+
public abstract class BaseVariable : SOArchitectureBaseObject, IBaseVariable
8+
{
9+
public abstract System.Type Type { get; }
10+
public abstract object BaseValue { get; set; }
11+
}
12+
public abstract class BaseVariable<T> : BaseVariable
813
{
914
public T Value { get { return _value; } set { _value = value; } }
10-
public System.Type Type { get { return typeof(T); } }
15+
public override System.Type Type { get { return typeof(T); } }
16+
public override object BaseValue { get { return _value; } set { _value = (T)value; } }
1117

1218
[SerializeField]
1319
protected T _value;

0 commit comments

Comments
 (0)