Commits

mori:home  committed b70cfd8

通信情報解析結果の読み込み機能を実装途中

  • Participants
  • Parent commits 78ecec7

Comments (0)

Files changed (11)

File unity/Assets/MainScene.unity

Binary file added.

File unity/Assets/MyScripts/Main.cs

 	
 	void Start () {
 		texture = new Texture2D(600,400,TextureFormat.RGBA32,false);
-		StreamReader streamReader = new StreamReader(Application.dataPath+"/../../tmp/summary.txt");
+		StreamReader streamReader = new StreamReader(Application.dataPath+"/../../tmp/tcp.txt");
 		string fileContents = "";
 		fileContents = streamReader.ReadToEnd();
-		print (fileContents);
+		//fileContents.Split('\n');
+		foreach(string line in fileContents.Split('\n'))
+		{
+			if(line != "")
+			{
+				sumTcpPorts.Add (int.Parse(line.Split (',')[0]),int.Parse(line.Split(',')[1]));
+			}
+		}
+		
+		List<int> keyList = new List<int>();
+		foreach(int key in sumTcpPorts.Keys)
+		{
+			keyList.Add (key);
+		}
+		keyList.Sort();
+		print (keyList);
+		foreach(int key in keyList)
+		{
+		print (key);
+		}
+		
 		drawColor();
 		
 	

File unity/Library/EditorUserBuildSettings.asset

Binary file modified.

File unity/Library/ScriptAssemblies/Assembly-CSharp.dll

Binary file modified.

File unity/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb

Binary file modified.

File unity/Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll

Binary file modified.

File unity/Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll.mdb

Binary file modified.

File unity/Library/assetDatabase3

Binary file modified.

File unity/Library/guidmapper

Binary file modified.

File unity/Library/metadata/5d/5d40091d9b4e5524d9cf73055743fb65

Binary file added.

File unity/Library/metadata/f7/f7bc945be075dfa469293aa550dbf6b3

Binary file modified.