Table of Contents

Class Schematic

Namespace
NominalSystems.Universe
Assembly
NominalSystems.Universe.dll

[Nominal] A schematic is a blueprint for a structure or system. This can be applied to any simulation object and will be used to generate data if needed.


public class Schematic
Inheritance
Schematic

Constructors

Schematic()

public Schematic()

Fields

Data

The raw data stored within the schematic. This can be filtered and set externally, synched with any objects.

public JObject Data

Field Value

JObject

ID

Defines the unique identifier for this schematic.

public Guid ID

Field Value

Guid

Objects

A list of objects that are stored within the schematic. These can be saved and loaded as needed.

public List<UniverseEvent> Objects

Field Value

List<UniverseEvent>

Methods

Add(UniverseEvent)

Adds an object to the schematic. This can be any universe event type provided that the type matches the class correctly.

public bool Add(UniverseEvent obj)

Parameters

obj UniverseEvent

The object to add

Returns

bool

GetBool(string)

Returns a value from the data as a bool

public bool GetBool(string key)

Parameters

key string

The key to grab

Returns

bool

The value of the data

GetDouble(string)

Returns a value from the data as a double

public double GetDouble(string key)

Parameters

key string

The key to grab

Returns

double

The value of the data

GetInt(string)

Returns a value from the data as a int

public int GetInt(string key)

Parameters

key string

The key to grab

Returns

int

The value of the data

GetObjects()

Returns a list of objects in the schematic.

public UniverseEvent[] GetObjects()

Returns

UniverseEvent[]

The array of objects

GetString(string)

Returns a value from the data as a string

public string GetString(string key)

Parameters

key string

The key to grab

Returns

string

The value of the data

SetBool(string, bool)

Sets the value of a boolean key in the schematic data.

public void SetBool(string key, bool value)

Parameters

key string

The key to set

value bool

The value to set

SetDouble(string, double)

Sets the value of a double key in the schematic data.

public void SetDouble(string key, double value)

Parameters

key string

The key to set

value double

The value to set

SetInt(string, int)

Sets the value of a integer key in the schematic data.

public void SetInt(string key, int value)

Parameters

key string

The key to set

value int

The value to set

SetString(string, string)

Sets the value of a string key in the schematic data.

public void SetString(string key, string value)

Parameters

key string

The key to set

value string

The value to set