//게임 내부 - Send 요청 함수 public void SendGesture(ref List <Vector3> point, GConfig.Hand hand) { lock (lockObject) { popFlag = false; if (CollectGestureData == true) { raw_data.Clear(); for (int i = 0; i < point.Count; ++i) { raw_data.Add(point[i]); } _data = GUtil.ExportGesture(ref raw_data, hand); } else { _data = GUtil.ExportGesture(ref point, hand); } flag = "send"; } }
//게임 내부 - Result 요청 함수 public int GetResult() { int tmp; lock (lockObject) { if (popFlag == true) { tmp = int.Parse(result); popFlag = false; if (CollectGestureData == true) { GUtil.SaveData(ref raw_data, tmp); } } else { tmp = -1; } } return(tmp); }
//Gesture Data - Export public static byte[] ExportGesture(ref List <Vector3> point, GConfig.Hand hand) { double[] v = Preprocess(point, hand); byte[] data = GUtil.ConvertToBytes(v); return(data); }