private void SegForm_SegmentsChanged(object sender, F3DZEX.Memory.Segment e)
        {
            _renderer.Memory.Segments[(int)sender] = e;

            DecodeDlists();
            NewRender();
        }
 public void SetSegment(int index, F3DZEX.Memory.Segment segment)
 {
     if (index >= 0 && index < F3DZEX.Memory.Segment.COUNT)
     {
         _renderer.Memory.Segments[index] = segment;
         DecodeDlists();
         NewRender();
     }
 }
        public void SetSegment(int idx, F3DZEX.Memory.Segment seg)
        {
            if (idx < 0 || idx > F3DZEX.Memory.Segment.COUNT)
            {
                throw new IndexOutOfRangeException();
            }

            _renderer.Memory.Segments[idx] = seg;

            if (_limbs != null)
            {
                UpdateLimbsDlists();
            }
        }
Exemple #4
0
 private void Seg_SegmentChanged(object sender, F3DZEX.Memory.Segment e)
 {
     SegmentsChanged?.Invoke(((SegmentControl)sender).SegmentID, e);
 }