public void ParseDataRow(string dataRowText)
    {
        DRPianoResConfig model = GameUtility.DeserializeObject <DRPianoResConfig>(dataRowText);

        Id           = model.Id;
        PianoBeatIds = model.PianoBeatIds;
    }
Esempio n. 2
0
    public void ParseDataRow(string dataRowText)
    {
        DRScene model = GameUtility.DeserializeObject <DRScene>(dataRowText);

        Id        = model.Id;
        AssetName = model.AssetName;
        BgmId     = model.BgmId;
    }
Esempio n. 3
0
    public void ParseDataRow(string dataRowText)
    {
        DRMusic model = GameUtility.DeserializeObject <DRMusic>(dataRowText);

        Id    = model.Id;
        Name  = model.Name;
        Asset = model.Asset;
    }
Esempio n. 4
0
    public void ParseDataRow(string dataRowText)
    {
        DREntity model = GameUtility.DeserializeObject <DREntity>(dataRowText);

        Id          = model.Id;
        AssetName   = model.AssetName;
        EntityGroup = model.EntityGroup;
    }
    public void ParseDataRow(string dataRowText)
    {
        DRLessonCategory model = GameUtility.DeserializeObject <DRLessonCategory>(dataRowText);

        Id       = model.Id;
        Name     = model.Name;
        NameNote = model.NameNote;
        SoundId  = model.SoundId;
    }
Esempio n. 6
0
    public void ParseDataRow(string dataRowText)
    {
        DRLessonContent model = GameUtility.DeserializeObject <DRLessonContent>(dataRowText);

        Id             = model.Id;
        ModuleId       = model.ModuleId;
        NameNote       = model.NameNote;
        ModuleConfigId = model.ModuleConfigId;
    }
Esempio n. 7
0
    public void ParseDataRow(string dataRowText)
    {
        DRUIForm model = GameUtility.DeserializeObject <DRUIForm>(dataRowText);

        Id                 = model.Id;
        AssetName          = model.AssetName;
        UIGroupName        = model.UIGroupName;
        AllowMultiInstance = model.AllowMultiInstance;
        PauseCoveredUIForm = model.PauseCoveredUIForm;
    }
Esempio n. 8
0
    public void ParseDataRow(string dataRowText)
    {
        DRPianoBeat model = GameUtility.DeserializeObject <DRPianoBeat>(dataRowText);

        Id            = model.Id;
        Name          = model.Name;
        Icon          = model.Icon;
        TimeSpeed     = model.TimeSpeed;
        BeatMoveSpeed = model.BeatMoveSpeed;
        Beats         = model.Beats;
        TimePoints    = model.TimePoints;
    }
    public void ParseDataRow(string dataRowText)
    {
        DRLessonModule model = GameUtility.DeserializeObject <DRLessonModule>(dataRowText);

        Id         = model.Id;
        Name       = model.Name;
        NameNote   = model.NameNote;
        ModuleDesc = model.ModuleDesc;
        Age        = model.Age;
        Icon       = model.Icon;
        SoundId    = model.SoundId;
    }
Esempio n. 10
0
    public void ParseDataRow(string dataRowText)
    {
        DRLessonInfo model = GameUtility.DeserializeObject <DRLessonInfo>(dataRowText);

        Id           = model.Id;
        GradeId      = model.GradeId;
        CategoryType = model.CategoryType;
        LessonName   = model.LessonName;
        NameNote     = model.NameNote;
        ContentIds   = model.ContentIds;
        ContentNotes = model.ContentNotes;
        SoundId      = model.SoundId;
    }
    public void ParseDataRow(string dataRowText)
    {
        DRLessonMonthPlan model = GameUtility.DeserializeObject <DRLessonMonthPlan>(dataRowText);

        Id                = model.Id;
        GradeId           = model.GradeId;
        MonthPlanName     = model.MonthPlanName;
        MonthShortName    = model.MonthShortName;
        MonthPlanNameNote = model.MonthPlanNameNote;
        MonthPlanDesc     = model.MonthPlanDesc;
        Categories        = model.Categories;
        Lessons           = model.Lessons;
    }
Esempio n. 12
0
    public void ParseDataRow(string dataRowText)
    {
        DRLessonGrade model = GameUtility.DeserializeObject <DRLessonGrade>(dataRowText);

        Id           = model.Id;
        GradeName    = model.GradeName;
        MainIcon     = model.MainIcon;
        NameNote     = model.NameNote;
        GradeDesc    = model.GradeDesc;
        Age          = model.Age;
        TypeDec      = model.TypeDec;
        MonthPlanIds = model.MonthPlanIds;
        SoundId      = model.SoundId;
    }
Esempio n. 13
0
    /// <summary>
    /// 解析Lua文件配置列表
    /// </summary>
    /// <param name="content">配置列表内容</param>
    public void ParseLuaFilesConfig(string content)
    {
        m_LuaFileInfos.Clear();
        string[] contentLines = content.Split('\n');
        int      len          = contentLines.Length;

        for (int i = 0; i < len; i++)
        {
            if (!string.IsNullOrEmpty(contentLines[i]))
            {
                LuaFileInfo info = GameUtility.DeserializeObject <LuaFileInfo>(contentLines[i]);
                m_LuaFileInfos.Add(info);
            }
        }
    }
Esempio n. 14
0
    private void OnProtoListLoadSuccess(string assetName, object asset, float duration, object userData)
    {
        TextAsset textAsset = (TextAsset)asset;
        string    data      = textAsset.text;

        m_ProtoList         = GameUtility.DeserializeObject <List <string> >(data);
        m_IsProtoListLoaded = true;

        //开始加载单个Proto
        foreach (string item in m_ProtoList)
        {
            Log.Info("item:" + item);
            m_LoadedFlag.Add(item, false);
            GameManager.Lua.LoadProtoPbFile(item);
        }
    }