Initial work on scripts
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace PkmnLib.Dynamic.ScriptHandling;
|
||||
|
||||
@@ -6,7 +7,14 @@ public class ScriptContainer : IEnumerable<ScriptContainer>
|
||||
{
|
||||
private Script? _script = null;
|
||||
|
||||
[MemberNotNullWhen(false, nameof(ScriptHandling.Script))]
|
||||
public bool IsEmpty => _script is null;
|
||||
|
||||
public Script? Script
|
||||
{
|
||||
get => _script;
|
||||
set => _script = value;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public IEnumerator<ScriptContainer> GetEnumerator()
|
||||
|
||||
Reference in New Issue
Block a user