Ejemplo n.º 1
0
        public void Update(ref CraftworkItemInfo info)
        {
            Debug.Assert(info.Ratio[0] == 0, "可能使用了错误的 0 下标");

            _CraftworkID   = info.CraftworkID;
            _CraftworkName = info.CraftworkName;

            _UserName = info.UserName;

            _MixTime = info.MixTime;
            _Once    = info.OnceMix;

            _Total         = info._Total;
            _TotalMixCount = info._TotalMixCount;

            if (_Ratio == null)
            {
                _Ratio = new double[info.Ratio.Count];
            }

            for (int i = 0; i < info.Ratio.Count; i++)
            {
                _Ratio[i] = info.Ratio[i];
            }
        }
Ejemplo n.º 2
0
 private static unsafe extern void CopyMemory(IntPtr dest, ref CraftworkItemInfo src, int size_t);