Example #1
0
    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);
    }
Example #2
0
        public static void Ex3()
        {
            GenEvent gnEvent        = new GenEvent();
            RecEvent inventoryWatch = new RecEvent(gnEvent);

            gnEvent.UpdateEvent("грузовика", -2);
            gnEvent.UpdateEvent("автопоезда", 4);
        }
Example #3
0
 private void ReadBytes(object sender, ElapsedEventArgs e)
 {
     byte[] bytes = Read();
     if (bytes.Length != 0)
     {
         RecEvent?.Invoke(bytes);
     }
 }
Example #4
0
 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;
 }
Example #5
0
    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 };
    }
Example #6
0
        static void Main(string[] args)
        {
            Console.OutputEncoding = Encoding.Unicode;

            GenEvent gnEvent        = new GenEvent();
            RecEvent inventoryWatch = new RecEvent(gnEvent);

            gnEvent.UpdateEvent("грузовика", -2);
            gnEvent.UpdateEvent("автопоезда", 4);
        }
Example #7
0
 private void UART_Win_Driver_ReceivedEvent(object sender, byte[] bytes)
 {
     RecEvent?.Invoke(bytes);
 }