changeset 35:f2ea780b3e80

fix
author Kazuma Takeda
date Wed, 22 Feb 2017 16:30:19 +0900
parents a79781723862
children 5a3b3aa5d477
files Main/jungle-main/DefaultJungle.cs Main/jungle-main/JungleTreeEditor.cs Main/jungle-main/core/Attributes.cs Main/jungle-main/core/MultiAttributes.cs Main/jungle-main/data/list/DefaultNode.cs Main/jungle-main/data/list/List.cs Main/jungle-main/data/list/TailNode.cs Main/jungle-main/data/list/headNode.cs Main/jungle-main/data/treemap/BlackNode.cs Main/jungle-main/data/treemap/EmptyNode.cs Main/jungle-main/data/treemap/RedNode.cs Main/jungle-main/data/treemap/Rotate.cs Main/jungle-main/data/treemap/TreeMap.cs Main/jungle-main/data/treemap/TreeMapNode.cs Main/jungle-main/data/treemap/rebuildNode.cs Main/jungle-main/persistent/ChangeList.cs Main/jungle-main/persistent/ChangeListWriter.cs Main/jungle-main/persistent/SingletonMessage.cs Main/jungle-main/store/NodeEditorError.cs Main/jungle-main/store/impl/DefaultNodePath.cs Main/jungle-main/store/impl/DefaultTreeEditor.cs Main/jungle-main/store/impl/logger/DefaultTreeOperationLog.cs Main/jungle-main/store/impl/logger/LoggingChildren.cs Main/jungle-main/store/impl/logger/LoggingNode.cs Main/jungle-main/store/operations/AppendChildAtOperation.cs Main/jungle-main/store/operations/DefaultTreeOperation.cs Main/jungle-main/store/operations/DeleteAttributeOperation.cs Main/jungle-main/store/operations/DeleteChildAtOperation.cs Main/jungle-main/store/operations/ReplaceRootNodeOperation.cs Main/jungle-main/store/transformer/AppendChildAt.cs Main/jungle-main/store/transformer/DeleteAttribute.cs Main/jungle-main/store/transformer/DeleteChildAt.cs Main/jungle-main/store/transformer/PutAttribute.cs Main/jungle-main/transaction/DefaultJungleTreeEditor.cs Main/jungle-main/transaction/DefaultTreeContext.cs Main/jungle-main/transaction/DefaultTreeNode.cs Main/jungle-main/transaction/DefaultTreeNodeAttribute.cs Main/jungle-main/transaction/DefaultTreeNodeChildren.cs Main/jungle-main/traverser/DefaultEvaluation.cs Main/jungle-main/traverser/DefaultEvaluator.cs Main/jungle-main/traverser/DefaultTraverser.cs Main/jungle-main/util/DefaultEither.cs Main/jungle-main/util/Either.cs Main/jungle-main/util/IterableConverter.cs Main/jungle-main/util/Pair.cs Main/jungle-network/core/NetworkDefaultJungle.cs Main/jungle-network/operations/NetworkAppendChildAtOperation.cs Main/jungle-network/operations/NetworkDeleteAttributeOperation.cs Main/jungle-network/operations/NetworkDeleteChildAtOperation.cs Main/jungle-network/operations/NetworkNodeOperation.cs Main/jungle-network/operations/NetworkNodePath.cs Main/jungle-network/operations/NetworkPutAttributeOperation.cs Main/jungle-network/operations/NetworkTreeOperation.cs Main/jungle-network/operations/NetworkTreeOperationLog.cs Main/jungle-network/transaction/NetworkDefaultJungleTree.cs Main/jungle-network/transaction/NetworkDefaultJungleTreeEditor.cs Main/jungle-network/transaction/NetworkTransactionManager.cs
diffstat 57 files changed, 251 insertions(+), 272 deletions(-) [+]
line wrap: on
line diff
--- a/Main/jungle-main/DefaultJungle.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/DefaultJungle.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,7 +1,6 @@
 using System.Collections;
 using System.Collections.Generic;
 using System;
-using UnityEngine;
 
 namespace JungleDB {
 	public class DefaultJungle : Jungle {
@@ -22,7 +21,6 @@
 			if (jungle_tree != null) {
 				return jungle_tree;
 			} else {
-				Debug.Log ("The Tree Name does not exist.");
 				return null;
 			}
 		}
@@ -36,7 +34,6 @@
 			if (newTree != null) {
 				trees = trees.put (name, newTree);
 			} else {
-				Debug.Log ("The Tree Name already exist.");
 			}
 			return newTree;
 		} 
--- a/Main/jungle-main/JungleTreeEditor.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/JungleTreeEditor.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -10,7 +10,7 @@
 		Either<Error,JungleTreeEditor> putAttribute(object value);
 		// add Method put Attribute (path, T?);
 		// Either<Error, JungleTreeEditor> putAttribute(NodePath path, string Key, T value);
-		Either<Error,JungleTreeEditor> deleteAttribute(NodePath path,string key);
+		Either<Error,JungleTreeEditor> deleteAttribute(NodePath path, string key);
 		Either<Error, JungleTreeEditor> replaceNewRootNode();
 		Either<Error,JungleTreeEditor> edit(NodePath path, NodeEditor editor);
 		Either<Error,JungleTreeEditor> commit();
--- a/Main/jungle-main/core/Attributes.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/core/Attributes.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,7 +1,9 @@
-using UnityEngine;
-public interface Attributes{
-	object get (string key);
-	T get<T> (string key);
-	byte[] getBytes(string key);
-	string getString (string key);
+
+namespace JungleDB {
+	public interface Attributes{
+		object get (string key);
+		T get<T> (string key);
+		byte[] getBytes(string key);
+		string getString (string key);
+	}
 }
--- a/Main/jungle-main/core/MultiAttributes.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/core/MultiAttributes.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,6 +1,5 @@
 using System.Collections;
 using System.Collections.Generic;
-using UnityEngine;
 
 namespace JungleDB {
 	public class MultiAttributes<T> {
--- a/Main/jungle-main/data/list/DefaultNode.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/list/DefaultNode.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System;
 
 public class DefaultNode<T> : Node<T> {
--- a/Main/jungle-main/data/list/List.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/list/List.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System.Collections.Generic;
 using System;
 
--- a/Main/jungle-main/data/list/TailNode.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/list/TailNode.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System;
 
 public class TailNode<T> : Node<T> {
--- a/Main/jungle-main/data/list/headNode.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/list/headNode.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System;
 
 public class headNode<T> : Node<T>{
--- a/Main/jungle-main/data/treemap/BlackNode.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/treemap/BlackNode.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections.Generic;
+using System.Collections.Generic;
 using System.Collections;
 using System;
 
--- a/Main/jungle-main/data/treemap/EmptyNode.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/treemap/EmptyNode.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,68 +1,78 @@
-using UnityEngine;
-using System.Collections;
-using System.Collections.Generic;
-using System;
+using System.Collections.Generic;
 
-public class EmptyNode<K,V> : TreeMapNode<K,V>{
+public class EmptyNode<K, V> : TreeMapNode<K, V>
+{
 	//static V values;
 	// Use this for initialization
-	public EmptyNode ()
-		: base (default(K),default(V))
+	public EmptyNode()
+		: base(default(K), default(V))
 	{
 	}
 
-	public EmptyNode (K key)
-		: base (key,default(V))
+	public EmptyNode(K key)
+		: base(key, default(V))
 	{
 	}
 
-	public override TreeMapNode<K,V> lefts(){
-		return new EmptyNode<K,V>();
+	public override TreeMapNode<K, V> lefts()
+	{
+		return new EmptyNode<K, V>();
 	}
 
-	public override TreeMapNode<K,V> rights(){
-		return new EmptyNode<K,V>();
+	public override TreeMapNode<K, V> rights()
+	{
+		return new EmptyNode<K, V>();
 	}
 
-	public override bool isNotEmpty(){
+	public override bool isNotEmpty()
+	{
 		return false;
 	}
 
-	public override TreeMapNode<K,V> createNode(K key,V value,TreeMapNode<K,V> left, TreeMapNode<K,V> right){
-		return new RedNode<K,V> (key, value, new EmptyNode<K,V> (), new EmptyNode<K,V> ());
+	public override TreeMapNode<K, V> createNode(K key, V value, TreeMapNode<K, V> left, TreeMapNode<K, V> right)
+	{
+		return new RedNode<K, V>(key, value, new EmptyNode<K, V>(), new EmptyNode<K, V>());
 	}
 
-	public TreeMapNode<K,V> put(K k,V value){
-		return new RedNode<K, V> (k, value, new EmptyNode<K,V> (), new EmptyNode<K,V> ());
+	public TreeMapNode<K, V> put(K k, V value)
+	{
+		return new RedNode<K, V>(k, value, new EmptyNode<K, V>(), new EmptyNode<K, V>());
 	}
 
 	//I don't know only Comparator method.
-	public override rebuildNode<K, V> replaceNode(TreeMapNode<K, V> parent, Comparer<K> ctr) { // not use method
-		return new rebuildNode<K,V>(false, this);
+	public override rebuildNode<K, V> replaceNode(TreeMapNode<K, V> parent, Comparer<K> ctr)
+	{ // not use method
+		return new rebuildNode<K, V>(false, this);
 	}
 
-	public override rebuildNode<K,V> deleteNode(){
-		return new rebuildNode<K, V> (false, this);
+	public override rebuildNode<K, V> deleteNode()
+	{
+		return new rebuildNode<K, V>(false, this);
 	}
-		
-	public override TreeMapNode<K,V> insBalance(){
+
+	public override TreeMapNode<K, V> insBalance()
+	{
 		return insBalance();
 	}
 
-	public override Rotate checkRotate(Rotate side){
+	public override Rotate checkRotate(Rotate side)
+	{
 		return Rotate.N;
 	}
 
-	public override bool isRed(){
+	public override bool isRed()
+	{
 		return false;
 	}
 
-	public override int checkDepth(int count, int minCount) { // test method
-		if (count < minCount || minCount == 0) {
+	public override int checkDepth(int count, int minCount)
+	{ // test method
+		if (count < minCount || minCount == 0)
+		{
 			minCount = count;
 		}
-			//c# is there assert??
-			//Assert.assertTrue(count <= 2 * minCount);
+		//c# is there assert??
+		//Assert.assertTrue(count <= 2 * minCount);
 		return minCount;
 	}
 
--- a/Main/jungle-main/data/treemap/RedNode.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/treemap/RedNode.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,6 +1,5 @@
-using UnityEngine;
+using System;
 using System.Collections;
-using System;
 using System.Collections.Generic;
 
 public class RedNode<K,V> : TreeMapNode<K,V>{
--- a/Main/jungle-main/data/treemap/Rotate.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/treemap/Rotate.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 public enum Rotate{
 	R,L,RL,LR,N
--- a/Main/jungle-main/data/treemap/TreeMap.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/treemap/TreeMap.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System.Collections.Generic;
 using System;
 
@@ -73,11 +72,10 @@
 
 		public void checkDepth() {
 			root.checkDepth (0, 0);
-			Debug.Log ("-----------------------------------");
 		}
 
 		public class iterators<T> : IEnumerator<T> {
-			Stack<TreeMapNode<T,V>> nodeStack = new Stack<TreeMapNode<T,V>>();
+			Stack<TreeMapNode<T, V>> nodeStack = new Stack<TreeMapNode<T, V>>();
 			TreeMapNode<T,V> currentNode = new TreeMap<T,V>().getRoot();
 			public List<T> appLines { get; set; }
 			private int position;
--- a/Main/jungle-main/data/treemap/TreeMapNode.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/treemap/TreeMapNode.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,6 +1,5 @@
 using System.Collections;
 using System;
-using UnityEngine;
 using System.Collections.Generic;
 
 
--- a/Main/jungle-main/data/treemap/rebuildNode.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/data/treemap/rebuildNode.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System;
 
 public class rebuildNode<K,V> {
--- a/Main/jungle-main/persistent/ChangeList.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/persistent/ChangeList.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections.Generic;
+using System.Collections.Generic;
 
 namespace JungleDB {
 	public interface ChangeList : IEnumerable<TreeOperation> {
--- a/Main/jungle-main/persistent/ChangeListWriter.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/persistent/ChangeListWriter.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public interface ChangeListWriter {
--- a/Main/jungle-main/persistent/SingletonMessage.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/persistent/SingletonMessage.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,7 +1,6 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
-public class SingletonMessage : MonoBehaviour {
+public class SingletonMessage  {
 
 	public static MsgPack.ObjectPacker getInstance () {
 		return new MsgPack.ObjectPacker();
--- a/Main/jungle-main/store/NodeEditorError.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/NodeEditorError.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 public class NodeEditorError{
 
--- a/Main/jungle-main/store/impl/DefaultNodePath.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/impl/DefaultNodePath.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections.Generic;
+using System.Collections.Generic;
 using System.Collections;
 
 namespace JungleDB {
--- a/Main/jungle-main/store/impl/DefaultTreeEditor.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/impl/DefaultTreeEditor.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System.Collections.Generic;
 
 namespace JungleDB {
--- a/Main/jungle-main/store/impl/logger/DefaultTreeOperationLog.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/impl/logger/DefaultTreeOperationLog.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections.Generic;
+using System.Collections.Generic;
 using System;
 using System.Collections;
 using System.Linq;
--- a/Main/jungle-main/store/impl/logger/LoggingChildren.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/impl/logger/LoggingChildren.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
 using System.Collections;
-using UnityEngine;
 
 namespace JungleDB {
 	public class LoggingChildren {
--- a/Main/jungle-main/store/impl/logger/LoggingNode.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/impl/logger/LoggingNode.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class LoggingNode {
--- a/Main/jungle-main/store/operations/AppendChildAtOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/operations/AppendChildAtOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System;
 
 namespace JungleDB {
--- a/Main/jungle-main/store/operations/DefaultTreeOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/operations/DefaultTreeOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class DefaultTreeOperation : TreeOperation {
--- a/Main/jungle-main/store/operations/DeleteAttributeOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/operations/DeleteAttributeOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System;
 
 namespace JungleDB {
--- a/Main/jungle-main/store/operations/DeleteChildAtOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/operations/DeleteChildAtOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System;
 
 namespace JungleDB {
--- a/Main/jungle-main/store/operations/ReplaceRootNodeOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/operations/ReplaceRootNodeOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System;
 
 namespace JungleDB {
--- a/Main/jungle-main/store/transformer/AppendChildAt.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/transformer/AppendChildAt.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class AppendChildAt : NodeEditor {
--- a/Main/jungle-main/store/transformer/DeleteAttribute.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/transformer/DeleteAttribute.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class DeleteAttribute : NodeEditor {
--- a/Main/jungle-main/store/transformer/DeleteChildAt.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/transformer/DeleteChildAt.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class DeleteChildAt : NodeEditor {
--- a/Main/jungle-main/store/transformer/PutAttribute.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/store/transformer/PutAttribute.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class PutAttribute : NodeEditor {
--- a/Main/jungle-main/transaction/DefaultJungleTreeEditor.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/transaction/DefaultJungleTreeEditor.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections.Generic;
+using System.Collections.Generic;
 
 namespace JungleDB {
 	public class DefaultJungleTreeEditor : JungleTreeEditor {
--- a/Main/jungle-main/transaction/DefaultTreeContext.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/transaction/DefaultTreeContext.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections.Generic;
+using System.Collections.Generic;
 
 // override need? 
 
--- a/Main/jungle-main/transaction/DefaultTreeNode.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/transaction/DefaultTreeNode.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-
+
 namespace JungleDB {
 	public class DefaultTreeNode : TreeNode {
 		
--- a/Main/jungle-main/transaction/DefaultTreeNodeAttribute.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/transaction/DefaultTreeNodeAttribute.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System.Collections.Generic;
 using System;
 using System.Text;
--- a/Main/jungle-main/transaction/DefaultTreeNodeChildren.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/transaction/DefaultTreeNodeChildren.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class DefaultTreeNodeChildren : TreeNodeChildren {
--- a/Main/jungle-main/traverser/DefaultEvaluation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/traverser/DefaultEvaluation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class DefaultEvaluation : Evaluation {
--- a/Main/jungle-main/traverser/DefaultEvaluator.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/traverser/DefaultEvaluator.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class DefaultEvaluator : Evaluator {
--- a/Main/jungle-main/traverser/DefaultTraverser.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/traverser/DefaultTraverser.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,6 +1,5 @@
 using System.Collections.Generic;
 using System.Collections;
-using UnityEngine;
 using System;
 
 namespace JungleDB {
--- a/Main/jungle-main/util/DefaultEither.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/util/DefaultEither.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,58 +1,60 @@
 
-public class DefaultEither<A,B> : Either<A,B> {
-	private A theA;
-	private B theB;
+namespace JungleDB {
+	public class DefaultEither<A,B> : Either<A,B> {
+		private A theA;
+		private B theB;
 
-	public DefaultEither(A _theA, B _theB){
-		theA = _theA;
-		theB = _theB;
-	}
+		public DefaultEither(A _theA, B _theB){
+			theA = _theA;
+			theB = _theB;
+		}
 
-	public static DefaultEither<A,B> newA(A _theA)
-	{
-		return new DefaultEither<A,B>(_theA,default(B));
-	}
+		public static DefaultEither<A,B> newA(A _theA)
+		{
+			return new DefaultEither<A,B>(_theA,default(B));
+		}
 
-	public static DefaultEither<A,B> newB(B _theB)
-	{
-		return new DefaultEither<A,B>(default(A),_theB);
-	}
-		
-	public A a()
-	{
-		return theA;
-	}
+		public static DefaultEither<A,B> newB(B _theB)
+		{
+			return new DefaultEither<A,B>(default(A),_theB);
+		}
+			
+		public A a()
+		{
+			return theA;
+		}
 
 
-	public bool isA()
-	{
-		return theA != null;
-	}
+		public bool isA()
+		{
+			return theA != null;
+		}
 
 
-	public B b()
-	{
-		return theB;
-	}
+		public B b()
+		{
+			return theB;
+		}
 
 
-	public bool isB()
-	{
-		return theB != null;
-	}
-
-	public Either<A, B> fmap(System.Func<B, B> f) {
-		if (isA ()) {
-			return this;
-		}
-		return newB(f(b()));
-	}
-
-	public Either<A, B> bind (System.Func<B, Either<A, B>> f) {
-		if (isA ()) {
-			return this;
+		public bool isB()
+		{
+			return theB != null;
 		}
 
-		return f (b ());
+		public Either<A, B> fmap(System.Func<B, B> f) {
+			if (isA ()) {
+				return this;
+			}
+			return newB(f(b()));
+		}
+
+		public Either<A, B> bind (System.Func<B, Either<A, B>> f) {
+			if (isA ()) {
+				return this;
+			}
+
+			return f (b ());
+		}
 	}
 }
--- a/Main/jungle-main/util/Either.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/util/Either.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,9 +1,11 @@
 
-public interface Either<A,B> {
-	A a();
-	bool isA();
-	B b();
-	bool isB();
-	Either<A, B> fmap (System.Func<B, B> f);
-	Either<A, B> bind (System.Func<B, Either<A,B>> f);
+namespace JungleDB {
+	public interface Either<A,B> {
+		A a();
+		bool isA();
+		B b();
+		bool isB();
+		Either<A, B> fmap (System.Func<B, B> f);
+		Either<A, B> bind (System.Func<B, Either<A,B>> f);
+	}
 }
--- a/Main/jungle-main/util/IterableConverter.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/util/IterableConverter.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections.Generic;
+using System.Collections.Generic;
 using System.Collections;
 using System;
 
--- a/Main/jungle-main/util/Pair.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-main/util/Pair.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 public class Pair<L, R> {
 	private L left;
--- a/Main/jungle-network/core/NetworkDefaultJungle.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/core/NetworkDefaultJungle.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System.Collections.Generic;
 namespace JungleDB {
 	public class NetworkDefaultJungle : Jungle {
--- a/Main/jungle-network/operations/NetworkAppendChildAtOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/operations/NetworkAppendChildAtOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class NetworkAppendChildAtOperation : NodeOperation {
--- a/Main/jungle-network/operations/NetworkDeleteAttributeOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/operations/NetworkDeleteAttributeOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class NetworkDeleteAttributeOperation : NodeOperation {
--- a/Main/jungle-network/operations/NetworkDeleteChildAtOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/operations/NetworkDeleteChildAtOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class NetworkDeleteChildAtOperation : NodeOperation {
--- a/Main/jungle-network/operations/NetworkNodeOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/operations/NetworkNodeOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class NetworkNodeOperation : NodeOperation {
--- a/Main/jungle-network/operations/NetworkNodePath.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/operations/NetworkNodePath.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,86 +1,103 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System.Collections.Generic;
 
-public class NetworkNodePath : NodePath {
-	LinkedList<int> Path;
-
-	public NetworkNodePath () {
-		Path = new LinkedList<int>();
-		Path.AddFirst(-1);
-	}
-
-	public NetworkNodePath (NodePath path){
-		Path = new LinkedList<int>();
-		foreach(int p in path) {
-			Path.AddLast(p);
-		}
-	}
-
-	// msg pack ni pointer wo watasenai point youso wo narabikaeru.
-	private NetworkNodePath (LinkedList<int> path) {
-		this.Path = path;
-	}
-
-	IEnumerator IEnumerable.GetEnumerator()
-	{
-		return this.GetEnumerator();
-	}
-
-	public IEnumerator<int> GetEnumerator()
-	{
-		foreach(var l in Path) {
-			yield return l;
-		}
-	}
-
-	public NodePath add (int pos) {
-		LinkedList<int> newPath = copyPath();
-		newPath.AddLast(pos);
-		return new NetworkNodePath(newPath);
+namespace JungleDB
+{
+	public class NetworkNodePath : NodePath
+	{
+		LinkedList<int> Path;
+
+		public NetworkNodePath()
+		{
+			Path = new LinkedList<int>();
+			Path.AddFirst(-1);
+		}
+
+		public NetworkNodePath(NodePath path)
+		{
+			Path = new LinkedList<int>();
+			foreach (int p in path)
+			{
+				Path.AddLast(p);
+			}
+		}
+
+		// msg pack ni pointer wo watasenai point youso wo narabikaeru.
+		private NetworkNodePath(LinkedList<int> path)
+		{
+			this.Path = path;
+		}
+
+		IEnumerator IEnumerable.GetEnumerator()
+		{
+			return this.GetEnumerator();
+		}
+
+		public IEnumerator<int> GetEnumerator()
+		{
+			foreach (var l in Path)
+			{
+				yield return l;
+			}
+		}
+
+		public NodePath add(int pos)
+		{
+			LinkedList<int> newPath = copyPath();
+			newPath.AddLast(pos);
+			return new NetworkNodePath(newPath);
+		}
+
+		public NodePath addHead(int pos)
+		{ // still java code.
+			LinkedList<int> newPath = copyPath();
+			newPath.AddFirst(pos);
+			return new NetworkNodePath(newPath);
+		}
+
+		public Pair<int, NodePath> pop()
+		{
+			LinkedList<int> cPath = copyPath();
+			int e = cPath.First.Value;
+			cPath.RemoveFirst();
+			return new Pair<int, NodePath>(e, new NetworkNodePath(cPath));
+		}
+
+		public int size()
+		{
+			return this.Path.Count;
+		}
+
+
+		public LinkedList<int> copyPath()
+		{
+			LinkedList<int> newPath = new LinkedList<int>();
+			foreach (int i in this.Path)
+			{
+				newPath.AddLast(i);
+			}
+			return newPath;
+		}
+
+		public override string ToString()
+		{
+			return Path.ToString();
+		}
+
+		public NodePath tail()
+		{
+			this.Path.RemoveLast();
+			return new NetworkNodePath(this.Path);
+		}
+
+		public Pair<int, NodePath> last()
+		{
+			int lastValue = this.Path.Last.Value;
+			this.Path.RemoveLast();
+			return new Pair<int, NodePath>(lastValue, new NetworkNodePath(this.Path));
+		}
+
+
+
 	}
-
-	public NodePath addHead(int pos) { // still java code.
-		LinkedList<int> newPath = copyPath();
-		newPath.AddFirst(pos);
-		return new NetworkNodePath(newPath);
-	}
-
-	public Pair<int, NodePath> pop () {
-		LinkedList<int> cPath = copyPath();
-		int e = cPath.First.Value;
-		cPath.RemoveFirst();
-		return new Pair<int, NodePath>(e, new NetworkNodePath(cPath));
-	}
-
-	public int size () {
-		return this.Path.Count;
-	}
-
-
-	public LinkedList<int> copyPath(){
-		LinkedList<int> newPath = new LinkedList<int>();
-		foreach(int i in this.Path) {
-			newPath.AddLast(i);
-		}
-		return newPath;
-	}
-
-	public override string ToString () {
-		return Path.ToString();
-	}
-
-	public NodePath tail() {
-		this.Path.RemoveLast();
-		return new NetworkNodePath(this.Path);
-	}
-
-	public Pair<int, NodePath> last () {
-		int lastValue = this.Path.Last.Value;
-		this.Path.RemoveLast();
-		return new Pair<int, NodePath>(lastValue, new NetworkNodePath(this.Path));
-	}
-
-
-
 }
--- a/Main/jungle-network/operations/NetworkPutAttributeOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/operations/NetworkPutAttributeOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class NetworkPutAttributeOperation : NodeOperation {
--- a/Main/jungle-network/operations/NetworkTreeOperation.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/operations/NetworkTreeOperation.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class NetworkTreeOperation : TreeOperation {
--- a/Main/jungle-network/operations/NetworkTreeOperationLog.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/operations/NetworkTreeOperationLog.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System.Collections.Generic;
 using System;
 
--- a/Main/jungle-network/transaction/NetworkDefaultJungleTree.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/transaction/NetworkDefaultJungleTree.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 
 namespace JungleDB {
 	public class NetworkDefaultJungleTree : JungleTree {
--- a/Main/jungle-network/transaction/NetworkDefaultJungleTreeEditor.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/transaction/NetworkDefaultJungleTreeEditor.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System.Collections.Generic;
 
 namespace JungleDB {
--- a/Main/jungle-network/transaction/NetworkTransactionManager.cs	Tue Feb 07 20:50:50 2017 +0900
+++ b/Main/jungle-network/transaction/NetworkTransactionManager.cs	Wed Feb 22 16:30:19 2017 +0900
@@ -1,5 +1,4 @@
-using UnityEngine;
-using System.Collections;
+using System.Collections;
 using System.Collections.Generic;