Ejemplo n.º 1
0
        void Build(int UID)
        {
            var _db = new PangyaEntities();

            foreach (var info in _db.ProcGetMascot(UID))
            {
                var mascot = new PlayerMascotData()
                {
                    MascotIndex      = (uint)info.MID,
                    MascotTypeID     = (uint)info.MASCOT_TYPEID,
                    MascotMessage    = info.MESSAGE,
                    MascotEndDate    = (DateTime)info.DateEnd,
                    MascotDayToEnd   = (ushort)info.END_DATE_INT,//DIAS PARA FINALIZAR O MASCOT
                    MascotIsValid    = 1,
                    MascotNeedUpdate = false
                };
                this.MascotAdd(mascot);
            }
        }