public void DeleteCam(int F) { Debug.Log("Deleting event at " + F); RecEvent DeleteRecEvent = Recrdng.Current.Data[F][0].Events.First(e => e.Type == RecEventType.CamChange); Recrdng.Current.Data[F][0].Events.Remove(DeleteRecEvent); }
public static void Ex3() { GenEvent gnEvent = new GenEvent(); RecEvent inventoryWatch = new RecEvent(gnEvent); gnEvent.UpdateEvent("грузовика", -2); gnEvent.UpdateEvent("автопоезда", 4); }
private void ReadBytes(object sender, ElapsedEventArgs e) { byte[] bytes = Read(); if (bytes.Length != 0) { RecEvent?.Invoke(bytes); } }
public Record(float _time, string _id, RecEvent _recEvent, Vector3 _place, Vector3 _face, System.Object _data) { time = _time; id = _id; recEvent = _recEvent; place = _place; face = _face; data = _data; }
public void RecordDamage(byte VId, RecEventType type, string partname, object Crunchname) { //Cant have two events on one recframe so just put it on the last empty one RecEvent evt = new RecEvent { Type = type, Data = partname, Data2 = Crunchname }; Data.Last().FirstOrDefault(fd => fd.VId == VId).Events.Add(evt); // = new RecEvent { Type = type, Data = partname, Data2 = Crunchname }; }
static void Main(string[] args) { Console.OutputEncoding = Encoding.Unicode; GenEvent gnEvent = new GenEvent(); RecEvent inventoryWatch = new RecEvent(gnEvent); gnEvent.UpdateEvent("грузовика", -2); gnEvent.UpdateEvent("автопоезда", 4); }
private void UART_Win_Driver_ReceivedEvent(object sender, byte[] bytes) { RecEvent?.Invoke(bytes); }