Mercurial > hg > Database > jungle-sharp
comparison src/test/csharp/jp.ac.u-ryukyu.ie.cr/junge-main/jungle/core/nodeeditor/PutAttributeTest.cs @ 17:01a08cf4b2d9
Liq Files
author | Kazuma |
---|---|
date | Mon, 07 Nov 2016 01:05:24 +0900 |
parents | b71d9ea6bd8e |
children |
comparison
equal
deleted
inserted
replaced
16:8f1ce942abfc | 17:01a08cf4b2d9 |
---|---|
1 using UnityEngine; | |
2 using System.Collections; | |
3 | |
4 public class PutAttributeTest : MonoBehaviour { | |
5 | |
6 string key = "hoge"; | |
7 public byte[] value; | |
8 | |
9 // Use this for initialization | |
10 void Start () { | |
11 TreeNode node = new DefaultTreeNode (); | |
12 PutAttribute op = new PutAttribute (key, value); | |
13 | |
14 Either<Error, LoggingNode> either = op.edit (node); | |
15 if (either.isA ()) { | |
16 Debug.Log ("Error発生"); | |
17 } | |
18 LoggingNode newnode = either.b (); | |
19 Debug.Log (newnode); | |
20 byte[] ret = newnode.getAttributes ().get (key); | |
21 Debug.Log ("insertしたものは" + ret); | |
22 } | |
23 | |
24 // Update is called once per frame | |
25 void Update () { | |
26 | |
27 } | |
28 } |