예제 #1
0
 public override void OnScreenOpen(LessonData data = null)
 {
     base.OnScreenOpen(data);
     gameObject.SetActive(true);
     openLettersMenuButton.enabled = true;
     SpriteTweeners.SpriteScaleCrossFromValueToValue(this, openLettersMenuButton.transform, 0, 1, 0.2f);
 }
예제 #2
0
        public LessonBrowser()
        {
            LessonData lessonData = LessonAccess.Instance.CurrentLessonData;

            m_LessonStageFactory = lessonData.LessonStageFactory;

            if (m_LessonStageFactory.LessonStages.Count > 0)
            {
                m_DefaultActiveState = false;
                ApplyDefaultState(lessonData.ShapeDataFactory);

                LessonStage firstStage = m_LessonStageFactory.LessonStages[0];
                m_AppliedActions.Push(firstStage);
                firstStage.ApplyActions();

                HandleLessonStageNumberChanged(LessonAccess.Instance.CurrentLessonStageNumber);
            }
            else
            {
                m_DefaultActiveState = true;
                ApplyDefaultState(lessonData.ShapeDataFactory);
            }

            AddDisposable(EventBus.Subscribe(this));
        }
예제 #3
0
        public IHttpActionResult GetAula()
        {
            u = credenciales.getUsuario();
            c = credenciales.getUsuario();
            var consulta = LessonData.ObtenerAula(u);

            return(Ok(consulta));
        }
예제 #4
0
        public IHttpActionResult Day(LessonModel lesson)
        {
            u = credenciales.getUsuario();
            c = credenciales.getUsuario();
            var consulta = LessonData.GetDia(lesson.Dia, u);

            return(Ok(consulta));
        }
예제 #5
0
        public IHttpActionResult Update(LessonModel lesson)
        {
            u = credenciales.getUsuario();
            c = credenciales.getUsuario();
            var consulta = LessonData.Actualizar(lesson.LessonId, lesson.Dia, lesson.EmpleadosId, lesson.HoraIn, lesson.HoraFin, lesson.AulaId, lesson.MateriaId, u);

            return(Ok(consulta));
        }
예제 #6
0
        public IHttpActionResult Show()
        {
            u = credenciales.getUsuario();
            c = credenciales.getUsuario();
            var consulta = LessonData.Mostrar(u);

            return(Ok(consulta));
        }
예제 #7
0
        public IHttpActionResult Create([FromBody] LessonModel lessons)
        {
            u = credenciales.getUsuario();
            c = credenciales.getUsuario();
            var consulta = LessonData.Crear(lessons.Dia, lessons.EmpleadosId, lessons.HoraIn, lessons.HoraFin, lessons.AulaId, lessons.MateriaId, u);

            return(Ok(consulta));
        }
예제 #8
0
 public LessonData GetLessonDataCashed()
 {
     if (Application.isEditor)
     {
         return(GetLessonData());
     }
     return(m_CashedLessonData ?? (m_CashedLessonData = GetLessonData()));
 }
예제 #9
0
        public IHttpActionResult GetEmployer()
        {
            u = credenciales.getUsuario();
            c = credenciales.getUsuario();
            var consulta = LessonData.ObtenerEmpleado(u);

            return(Ok(consulta));
        }
        public async Task <IActionResult> GetQAByGrade(JQueryDataTableParamModel param, StudentFilterDto model)
        {
            using (var txscope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
            {
                try
                {
                    var parameters = CommonMethod.GetJQueryDatatableParamList(param, GetSortingColumnName(param.iSortCol_0));

                    parameters.Parameters.Insert(0, new SqlParameter("@Fromdate", SqlDbType.DateTime)
                    {
                        Value = Convert.ToDateTime(model.FromDate).ToString("yyyy/MM/dd")
                    });
                    parameters.Parameters.Insert(1, new SqlParameter("@Todate", SqlDbType.DateTime)
                    {
                        Value = Convert.ToDateTime(model.ToDate).ToString("yyyy/MM/dd")
                    });

                    var allList = await _studentService.GetQAByGrade(parameters.Parameters.ToArray());

                    List <QAGradeStudent> qAGradeStudents = new List <QAGradeStudent>();

                    foreach (var item in allList.GroupBy(x => x.GradeName))
                    {
                        QAGradeStudent qAGradeStudent = new QAGradeStudent();
                        qAGradeStudent.GradeName = item.Key;
                        foreach (var item1 in item)
                        {
                            LessonData lessonData = new LessonData();
                            lessonData.LessonName = item1.LessonName;
                            lessonData.QACount    = item1.QACount;
                            qAGradeStudent.Lessons.Add(lessonData);
                        }
                        qAGradeStudents.Add(qAGradeStudent);
                    }

                    var total = allList.FirstOrDefault()?.TotalRecords ?? 0;
                    return(Json(new
                    {
                        param.sEcho,
                        iTotalRecords = total,
                        iTotalDisplayRecords = total,
                        aaData = qAGradeStudents
                    }));
                }
                catch (Exception ex)
                {
                    ErrorLog.AddErrorLog(ex, "GetQAByGrade");
                    return(Json(new
                    {
                        param.sEcho,
                        iTotalRecords = 0,
                        iTotalDisplayRecords = 0,
                        aaData = ""
                    }));
                }
            }
        }
예제 #11
0
    public override void OnScreenOpen(LessonData data)
    {
        base.OnScreenOpen(data);
        lockTouchLetters      = true;
        correctLetterID       = myData.letterID;
        currentLeterData      = alphabetData.GetLetterByID(correctLetterID);
        completedLettersCount = 0;

        StartCoroutine(TutorPartProcess());
    }
        public static Lesson ToApiModel(this LessonData lessonData)
        {
            var result = new Lesson
            {
                CourseId    = lessonData.CourseId,
                Description = lessonData.DescriptionData.ToApiModel(),
                Id          = lessonData.Id,
                Steps       = lessonData.Steps.Select(step => step.ToApiModel()).ToList()
            };

            return(result);
        }
예제 #13
0
    public override void OnScreenOpen(LessonData data = null)
    {
        base.OnScreenOpen();
        isClosed = false;
        if (currentLetters == null || currentLetters.Count == 0)
        {
            Init();
        }

        StopAllCoroutines();
        StartCoroutine(OpenWindowProcess());
    }
        private static void AddLessonProgress(CourseProgressData courseProgressData, LessonData lessonData)
        {
            var lessonProgress = new LessonProgressData
            {
                LessonId       = lessonData.Id,
                StepProgresses = new List <StepProgressData>()
            };

            foreach (var step in lessonData.Steps)
            {
                AddStepProgress(lessonProgress, step);
            }

            courseProgressData.LessonProgresses.Add(lessonProgress);
        }
예제 #15
0
        public void RequestStartLesson(LessonAsset lessonAsset)
        {
            LessonData lessonData = lessonAsset.GetLessonDataCashed();

            if (lessonData == null)
            {
                // TODO dialog window
                return;
            }

            m_CurrentLessonAsset = lessonAsset;
            m_CurrentLessonData  = lessonData;
            EventBus.RaiseEvent <ICurrentLessonDataChangedHandler>(h => h.HandleCurrentLessonDataChanged(lessonData));

            ApplicationModeAccess.Instance.GoToLessonMode();
        }
예제 #16
0
        public void SetLessonData(LessonData lessonData, string lessonName)
        {
            if (m_LessonData != null)
            {
                m_LessonData.DirtinessChanged -= UpdateLessonName;
            }
            m_LessonData = lessonData;
            m_LessonData.DirtinessChanged += UpdateLessonName;

            m_LessonName    = lessonName;
            m_LessonIsDirty = !m_LessonData.IsDirty;
            UpdateLessonName();

            m_ShapeBlueprintsListEditor.OnTargetChosen(m_LessonData.ShapeBlueprintFactory);
            m_LessonStagesListEditor.OnTargetChosen(m_LessonData.LessonStageFactory);

            LessonVisualizer lessonVisualizer = FindObjectOfType <LessonVisualizer>();

            if (lessonVisualizer != null)
            {
                lessonVisualizer.SetShapeDataFactory(m_LessonData.ShapeDataFactory);
            }
        }
        /// <summary>
        /// Choose a specific lesson and view its information.
        /// </summary>
        /// <param name="selectedLesson">The lesson's data</param>
        private void UseSelectedLesson(LessonData selectedLesson)
        {
            // Update the properties per the selected lesson
            if (selectedLesson != null)
            {
                SelectedClass   = selectedLesson.ClassID;
                SelectedCourse  = selectedLesson.CourseID;
                SelectedTeacher = selectedLesson.TeacherID;
                SelectedRoom    = (selectedLesson.RoomID != null) ? selectedLesson.RoomID.Value : NOT_ASSIGNED;

                LessonFirstDay  = (selectedLesson.LessonMeetingTimes.DayFirst != null) ? selectedLesson.LessonMeetingTimes.DayFirst.Value : NOT_ASSIGNED;
                LessonSecondDay = (selectedLesson.LessonMeetingTimes.DaySecond != null) ? selectedLesson.LessonMeetingTimes.DaySecond.Value : NOT_ASSIGNED;
                LessonThirdDay  = (selectedLesson.LessonMeetingTimes.DayThird != null) ? selectedLesson.LessonMeetingTimes.DayThird.Value : NOT_ASSIGNED;
                LessonFourthDay = (selectedLesson.LessonMeetingTimes.DayFourth != null) ? selectedLesson.LessonMeetingTimes.DayFourth.Value : NOT_ASSIGNED;

                LessonFirstHour  = (selectedLesson.LessonMeetingTimes.HourFirst != null) ? selectedLesson.LessonMeetingTimes.HourFirst.Value : NOT_ASSIGNED;
                LessonSecondHour = (selectedLesson.LessonMeetingTimes.HourSecond != null) ? selectedLesson.LessonMeetingTimes.HourSecond.Value : NOT_ASSIGNED;
                LessonThirdHour  = (selectedLesson.LessonMeetingTimes.HourThird != null) ? selectedLesson.LessonMeetingTimes.HourThird.Value : NOT_ASSIGNED;
                LessonFourthHour = (selectedLesson.LessonMeetingTimes.HourFourth != null) ? selectedLesson.LessonMeetingTimes.HourFourth.Value : NOT_ASSIGNED;
            }
            else
            {
                // No lesson was selected -> Reset the properties
                SelectedRoom = NOT_ASSIGNED;

                LessonFirstDay  = NOT_ASSIGNED;
                LessonSecondDay = NOT_ASSIGNED;
                LessonThirdDay  = NOT_ASSIGNED;
                LessonFourthDay = NOT_ASSIGNED;

                LessonFirstDay  = NOT_ASSIGNED;
                LessonSecondDay = NOT_ASSIGNED;
                LessonThirdDay  = NOT_ASSIGNED;
                LessonFourthDay = NOT_ASSIGNED;
            }
        }
        /// <summary>
        /// Converts the Model's lesson class into the local LessonData class
        /// </summary>
        /// <param name="lesson">The Model's lesson</param>
        /// <returns>Corresponding LessonData version of the lesson</returns>
        private LessonData ModelLessonToLessonData(Lesson lesson)
        {
            LessonData lessonData = new LessonData();

            // Get the IDs
            lessonData.ID        = lesson.lessonID;
            lessonData.ClassID   = lesson.classID;
            lessonData.CourseID  = lesson.courseID;
            lessonData.TeacherID = lesson.teacherID;
            lessonData.RoomID    = lesson.roomID;

            // Get the names
            lessonData.ClassName   = lesson.Class.className;
            lessonData.CourseName  = lesson.Course.courseName;
            lessonData.TeacherName = lesson.Teacher.Person.firstName + " " + lesson.Teacher.Person.lastName;

            if (lessonData.RoomID != null)
            {
                lessonData.RoomName = lesson.Room.roomName;
            }

            // Get the lesson meeting times
            lessonData.LessonMeetingTimes = new LessonTimes()
            {
                DayFirst   = lesson.firstLessonDay,
                DaySecond  = lesson.secondLessonDay,
                DayThird   = lesson.thirdLessonDay,
                DayFourth  = lesson.fourthLessonDay,
                HourFirst  = lesson.firstLessonHour,
                HourSecond = lesson.secondLessonHour,
                HourThird  = lesson.thirdLessonHour,
                HourFourth = lesson.fourthLessonHour
            };

            return(lessonData);
        }
예제 #19
0
 protected override void OnReadingDataModel(LessonData data)
 {
     this.Paragraphs.Clear();
     this.Paragraphs.AddRange(data.Paragraphs.Select(this.CreateParagraphViewModel));
 }
예제 #20
0
        private void LoadFromString(string lessonContent)
        {
            LessonData data = JsonConvert.DeserializeObject <LessonData>(lessonContent);

            this.SetDataModel(data);
        }
예제 #21
0
 public void OpenNewLesson(LessonData data)
 {
     windows[windows.Count - 1].OnScreenClose();
     currentLesson = Instantiate(GetLessonPrefabByType(data.type), Vector3.zero, Quaternion.identity).GetComponent <AppScreen>();
     currentLesson.OnScreenOpen(data);
 }
        public void Initialize(Person connectedPerson)
        {
            // Reset data
            ConnectedPerson = connectedPerson;
            Schedule        = new LessonData[Globals.DAY_NAMES.Length, Globals.HOUR_NAMES.Length];
            AvailableSchedules.Clear();

            // Find the currently displayed class, as well as fill the available classes list depending on the connected user
            if (ConnectedPerson.isStudent)
            {
                // A student schedule is his class's schedule
                CanViewDifferentSchedules = false;
                Class studentClass = ConnectedPerson.Student.Class;

                // Make sure the student is assigned to a class (otherwise he doesn't have a schedule
                if (studentClass != null)
                {
                    ScheduleData schedule = CreateClassSchedule(studentClass);

                    // Add the schedule to the schedules list
                    AvailableSchedules.Add(schedule);
                }
            }
            else if (ConnectedPerson.isParent)
            {
                // A parent can see his children's schedules
                CanViewDifferentSchedules = true;
                foreach (Student student in ConnectedPerson.ChildrenStudents)
                {
                    if (!student.Person.User.isDisabled && student.classID != null)
                    {
                        ScheduleData schedule = CreateClassSchedule(student.Class);

                        // Change schedule to use children's name
                        schedule.Name = student.Person.firstName + " " + student.Person.lastName;

                        // Add the schedule to the schedules list
                        AvailableSchedules.Add(schedule);
                    }
                }
            }
            else if (ConnectedPerson.isTeacher)
            {
                // A teacher can just see his own schedule, as well as his classroom's schedule (if he/she has one)
                CanViewDifferentSchedules = true;

                // Add teacher's own schedule
                ScheduleData teacherOwnSchedule = CreateTeacherSchedule(ConnectedPerson.Teacher);
                AvailableSchedules.Add(teacherOwnSchedule);

                // Add an homeroom teacher's class schedule
                if (ConnectedPerson.Teacher.classID != null)
                {
                    ScheduleData homeroomTeacherClassSchedule = CreateClassSchedule(ConnectedPerson.Teacher.Class);
                    AvailableSchedules.Add(homeroomTeacherClassSchedule);
                }
            }
            else if (ConnectedPerson.isPrincipal || ConnectedPerson.isSecretary)
            {
                // Secretaries and the principal can watch every class's, and every teacher's schedule
                CanViewDifferentSchedules = true;

                // Add every class's schedule
                SchoolEntities schoolData = new SchoolEntities();
                foreach (Class schoolClass in schoolData.Classes)
                {
                    ScheduleData schedule = CreateClassSchedule(schoolClass);
                    AvailableSchedules.Add(schedule);
                }

                // Add every teacher's schedule
                foreach (Teacher teacher in schoolData.Teachers)
                {
                    ScheduleData schedule = CreateTeacherSchedule(teacher);
                    AvailableSchedules.Add(schedule);
                }

                // Add every room's schedule
                foreach (Room room in schoolData.Rooms)
                {
                    ScheduleData schedule = CreateRoomSchedule(room);
                    AvailableSchedules.Add(schedule);
                }
            }

            SelectedSchedule = AvailableSchedules.First();
        }
예제 #23
0
        private bool ParseHeader_1_7(TabStream s)
        {
            m_fileType = s.LE_ReadUInt8();

            switch (m_fileType)
            {
            case FILETYPE_SONG:
                m_songData = new SongData();

                m_songData.contentType = s.LE_ReadUInt8();
                m_songData.title       = s.ReadStringWithLength();
                m_songData.artist      = s.ReadStringWithLength();
                m_songData.releaseType = s.LE_ReadUInt8();
                switch (m_songData.releaseType)
                {
                case RELEASETYPE_PUBLIC_AUDIO:
                    m_songData.audioData       = new SongData.AudioData();
                    m_songData.audioData.type  = s.LE_ReadUInt8();
                    m_songData.audioData.title = s.ReadStringWithLength();
                    m_songData.audioData.year  = s.LE_ReadUInt16();
                    m_songData.audioData.live  = s.LE_ReadUInt8();
                    break;

                case RELEASETYPE_PUBLIC_VIDEO:
                    m_songData.videoData       = new SongData.VideoData();
                    m_songData.videoData.title = s.ReadStringWithLength();
                    m_songData.videoData.live  = s.LE_ReadUInt8();
                    break;

                case RELEASETYPE_BOOTLEG:
                    m_songData.bootlegData       = new SongData.BootlegData();
                    m_songData.bootlegData.title = s.ReadStringWithLength();
                    m_songData.bootlegData.month = s.LE_ReadUInt16();
                    m_songData.bootlegData.day   = s.LE_ReadUInt16();
                    m_songData.bootlegData.year  = s.LE_ReadUInt16();
                    break;
                }

                m_songData.authorType = s.LE_ReadUInt8();
                if (m_songData.authorType == AUTHORTYPE_AUTHORKNOWN)
                {
                    m_songData.authorData          = new SongData.AuthorData();
                    m_songData.authorData.composer = s.ReadStringWithLength();
                    m_songData.authorData.lyricist = s.ReadStringWithLength();
                }

                m_songData.arranger = s.ReadStringWithLength();

                m_songData.guitarScoreTranscriber = s.ReadStringWithLength();
                m_songData.bassScoreTranscriber   = s.ReadStringWithLength();
                m_songData.copyright        = s.ReadStringWithLength();
                m_songData.lyrics           = s.ReadStringWithLength();
                m_songData.guitarScoreNotes = s.ReadStringWithLength();
                m_songData.bassScoreNotes   = s.ReadStringWithLength();

                break;

            case FILETYPE_LESSON:
                m_lessonData = new LessonData();

                m_lessonData.title      = s.ReadStringWithLength();
                m_lessonData.subtitle   = s.ReadStringWithLength();
                m_lessonData.musicStyle = s.LE_ReadUInt16();
                m_lessonData.level      = s.LE_ReadUInt8();
                m_lessonData.author     = s.ReadStringWithLength();
                m_lessonData.notes      = s.ReadStringWithLength();
                m_lessonData.copyright  = s.ReadStringWithLength();

                break;
            }
            return(true);
        }
예제 #24
0
        public IHttpActionResult ShowUpdate(LessonModel lesson)
        {
            var consulta = LessonData.MostrarActualizar(lesson.LessonId);

            return(Ok(consulta));
        }
예제 #25
0
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            //default models
            //modelBuilder.ApplyConfiguration(new SchoolConfiguration());
            //modelBuilder.ApplyConfiguration(new LessonConfiguration());
            //modelBuilder.ApplyConfiguration(new StudentConfiguration());

            //special database models for many to many
            modelBuilder.ApplyConfiguration(new SchoolDataConfiguration());
            modelBuilder.ApplyConfiguration(new LessonDataConfiguration());
            modelBuilder.ApplyConfiguration(new StudentDataConfiguration());
            modelBuilder.ApplyConfiguration(new StudentLessonDataConfiguration());

            //relations
            modelBuilder.Entity <SchoolData>().HasMany(sd => sd.Lessons).WithOne().OnDelete(DeleteBehavior.Cascade);
            modelBuilder.Entity <SchoolData>().HasMany(sd => sd.Students).WithOne().OnDelete(DeleteBehavior.Cascade);

            modelBuilder.Entity <StudentData>().HasMany(sd => sd.StudentLessons).WithOne().OnDelete(DeleteBehavior.ClientSetNull).HasForeignKey(sd => sd.LessonId);
            modelBuilder.Entity <LessonData>().HasMany(ld => ld.StudentLessons).WithOne().OnDelete(DeleteBehavior.ClientSetNull).HasForeignKey(sd => sd.LessonId);

            modelBuilder.Entity <StudentLessonData>().HasOne(sld => sld.Student).WithMany().OnDelete(DeleteBehavior.ClientSetNull).HasForeignKey(sd => sd.StudentId);
            modelBuilder.Entity <StudentLessonData>().HasOne(sld => sld.Lesson).WithMany().OnDelete(DeleteBehavior.ClientSetNull).HasForeignKey(sd => sd.LessonId);


            //seeding
            var lesson1 = new LessonData()
            {
                Id = 1, Name = "Wiskunde"
            };
            var lesson2 = new LessonData()
            {
                Id = 1, Name = "Nederlands"
            };

            var student1 = new StudentData {
                Id = 1, Name = "Joris", Age = 22, Lessons = new List <Lesson>()
                {
                    lesson1, lesson2
                }
            };
            var student2 = new StudentData {
                Id = 2, Name = "Ruben", Age = 24, Lessons = new List <Lesson>()
                {
                    lesson2
                }
            };
            var student3 = new StudentData {
                Id = 3, Name = "Nick", Age = 22, Lessons = new List <Lesson>()
                {
                    lesson1
                }
            };

            var school = new SchoolData()
            {
                Id = 1, Name = "Fontys", Lessons = new List <LessonData>()
                {
                    lesson1, lesson2
                }, Students = new List <StudentData>()
                {
                    student1, student2, student3
                }
            };

            modelBuilder.Entity <SchoolData>().HasData(school);

            base.OnModelCreating(modelBuilder);
        }
예제 #26
0
        protected override LessonData OnWritingDataModel(LessonData data)
        {
            data.Paragraphs = this.Paragraphs.Select(o => o.WriteToDataModel()).ToList();

            return(data);
        }
예제 #27
0
        public IHttpActionResult Delete(LessonModel lesson)
        {
            var consulta = LessonData.Eliminar(lesson.LessonId);

            return(Ok(consulta));
        }
예제 #28
0
        private bool ParseHeader_1_7(TabStream s)
        {
            m_fileType = s.LE_ReadUInt8();

            switch (m_fileType)
            {
                case FILETYPE_SONG:
                    m_songData = new SongData();

                    m_songData.contentType = s.LE_ReadUInt8();
                    m_songData.title = s.ReadStringWithLength();
                    m_songData.artist = s.ReadStringWithLength();
                    m_songData.releaseType = s.LE_ReadUInt8();
                    switch (m_songData.releaseType)
                    {
                        case RELEASETYPE_PUBLIC_AUDIO:
                            m_songData.audioData = new SongData.AudioData();
                            m_songData.audioData.type = s.LE_ReadUInt8();
                            m_songData.audioData.title = s.ReadStringWithLength();
                            m_songData.audioData.year = s.LE_ReadUInt16();
                            m_songData.audioData.live = s.LE_ReadUInt8();
                            break;
                        case RELEASETYPE_PUBLIC_VIDEO:
                            m_songData.videoData = new SongData.VideoData();
                            m_songData.videoData.title = s.ReadStringWithLength();
                            m_songData.videoData.live = s.LE_ReadUInt8();
                            break;
                        case RELEASETYPE_BOOTLEG:
                            m_songData.bootlegData = new SongData.BootlegData();
                            m_songData.bootlegData.title = s.ReadStringWithLength();
                            m_songData.bootlegData.month = s.LE_ReadUInt16();
                            m_songData.bootlegData.day = s.LE_ReadUInt16();
                            m_songData.bootlegData.year = s.LE_ReadUInt16();
                            break;
                    }

                    m_songData.authorType = s.LE_ReadUInt8();
                    if (m_songData.authorType == AUTHORTYPE_AUTHORKNOWN)
                    {
                        m_songData.authorData = new SongData.AuthorData();
                        m_songData.authorData.composer = s.ReadStringWithLength();
                        m_songData.authorData.lyricist = s.ReadStringWithLength();
                    }

                    m_songData.arranger = s.ReadStringWithLength();

                    m_songData.guitarScoreTranscriber = s.ReadStringWithLength();
                    m_songData.bassScoreTranscriber = s.ReadStringWithLength();
                    m_songData.copyright = s.ReadStringWithLength();
                    m_songData.lyrics = s.ReadStringWithLength();
                    m_songData.guitarScoreNotes = s.ReadStringWithLength();
                    m_songData.bassScoreNotes = s.ReadStringWithLength();

                    break;
                case FILETYPE_LESSON:
                    m_lessonData = new LessonData();

                    m_lessonData.title = s.ReadStringWithLength();
                    m_lessonData.subtitle = s.ReadStringWithLength();
                    m_lessonData.musicStyle = s.LE_ReadUInt16();
                    m_lessonData.level = s.LE_ReadUInt8();
                    m_lessonData.author = s.ReadStringWithLength();
                    m_lessonData.notes = s.ReadStringWithLength();
                    m_lessonData.copyright = s.ReadStringWithLength();

                    break;
            }
            return true;
        }
예제 #29
0
 public virtual void OnScreenOpen(LessonData data = null)
 {
     this.data = data;
 }