Пример #1
0
        public void Add(HSD_JOBJ jobj, float weight)
        {
            // create new if null
            if (_s == null)
            {
                _s = new HSDStruct(8);
            }

            // resize struct
            _s.Resize(_s.Length + 8);

            if (_s.Length == 8)
            {
                _s.Resize(_s.Length + 8);
            }

            // set at last position
            int position = ((_s.Length - 8) / 8) - 1;

            SetJOBJAt(position, jobj);
            SetWeightAt(position, weight);
        }
Пример #2
0
 public void SetJOBJAt(int index, HSD_JOBJ jobj)
 {
     _s.SetReference(8 * index, jobj);
 }