1using System.Runtime.ExceptionServices;
17 [BadMethod(description:
"Converts a JSON String to a BadObject")]
18 [
return: BadReturn(
"The Parsed Object")]
27 ExceptionDispatchInfo.Capture(e).Throw();
37 [BadMethod(description:
"Converts a BadObject to a JSON String")]
38 [return: BadReturn(
"The JSON String")]
39 private string
ToJson([BadParameter(description:
"The Object to be converted.")]
BadObject o)
Implements the "Json" Api.
string ToJson([BadParameter(description:"The Object to be converted.")] BadObject o)
BadObject FromJson(BadExecutionContext ctx, [BadParameter(description:"The JSON String")] string str)
override void AdditionalData(BadTable target)
Implements a Json to BadObject Converter.
static BadObject FromJson(string s)
Converts a Json string to a BadObject.
static string ToJson(BadObject o)
Converts a BadObject to a Json string.
Implements a Settings Object Wrapper.
static readonly BadClassPrototype Prototype
The Class Prototype.
The Execution Context. Every execution of a script needs a context the script is running in....
BadScope Scope
The Root Scope of the Context.
string GetStackTrace()
Returns the Stack Trace of the Current scope.
Gets thrown if the runtime encounters an error.
Implements the Error Object Type.
static BadRuntimeError FromException(Exception e, string? scriptStackTrace=null)
Creates a BadRuntimeError from an Exception.
Implements an Interop API for the BS2 Language.
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Stores Meta Information about a Property.
Implements a Table Structure for the BadScript Language.
Helper class that can be used to automatically load a settings object from a file.
static BadSettings RootSettings
Returns the Root Settings Object.
Contains JSON Extensions and APIs for the BadScript2 Runtime.
Contains the Error Objects for the BadScript2 Language.
Contains the Interop Abstractions and Implementations for the BadScript2 Language.
Contains the Runtime Objects.
Contains the Runtime Implementation.
Contains the Settings Implementation.