예제 #1
0
            public void SetValue(EditorField field)
            {
                var replace = JToken.FromObject(Value);

                field.Json.Replace(replace);
                field.Json = replace;
            }
예제 #2
0
 public EditorSession(BehaviourManifest manifest, JObject instance, string type)
 {
     Manifest = manifest;
     Root     = new EditorField(this, instance, "root", new FieldInformation()
     {
         Type = type
     });
 }
예제 #3
0
 public EditorSession(BehaviourManifest manifest, object instance)
 {
     Manifest = manifest;
     Root     = new EditorField(this, JObject.FromObject(instance), "root", new FieldInformation()
     {
         Type = instance.GetType().FullName
     });
 }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }