public void SetValue(EditorField field) { var replace = JToken.FromObject(Value); field.Json.Replace(replace); field.Json = replace; }
public EditorSession(BehaviourManifest manifest, JObject instance, string type) { Manifest = manifest; Root = new EditorField(this, instance, "root", new FieldInformation() { Type = type }); }
public EditorSession(BehaviourManifest manifest, object instance) { Manifest = manifest; Root = new EditorField(this, JObject.FromObject(instance), "root", new FieldInformation() { Type = instance.GetType().FullName }); }
public EditorSession(BehaviourManifest manifest, JObject instance, string type, JsonSerializer jsonSerializer) { Manifest = manifest; JsonSerializer = jsonSerializer; Instance = instance; var rootField = new FieldInformation() { Type = type }; Root = new EditorField(this, instance, "root", rootField); }
public EditorSession(BehaviourManifest manifest, object instance, JsonSerializer jsonSerializer) { Manifest = manifest; JsonSerializer = jsonSerializer; var rootJson = JObject.FromObject(instance, JsonSerializer); string type = instance.GetType().FullName; Instance = rootJson; var rootField = new FieldInformation() { Type = type }; Root = new EditorField(this, rootJson, "root", rootField); }