Example #1
0
 public TalkInfo(TalkCSV csv)
 {
     if (Utils.IsEnumParseName(typeof(DataMgr.Stage), csv.Stage))
     {
         Stage = (DataMgr.Stage)Enum.Parse(typeof(DataMgr.Stage), csv.Stage);
     }
     else
     {
         Stage = DataMgr.Stage.Tutorial;
     }
     Character = csv.Character;
     Number    = csv.Number;
     Start     = csv.Start;
     End       = csv.End;
 }
Example #2
0
 public StoryUIDesineInfo(StoryUIDesineCSV csv)
 {
     if (Utils.IsEnumParseName(typeof(DataMgr.Stage), csv.Stage))
     {
         Stage = (DataMgr.Stage)Enum.Parse(typeof(DataMgr.Stage), csv.Stage);
     }
     else
     {
         Stage = DataMgr.Stage.Tutorial;
     }
     Step       = csv.Step;
     Desc_Korea = csv.Desc_Korea;
     Desc_Eng   = csv.Desc_Eng;
     IsEnd      = csv.End == 0 ? false : true;
     Icon       = csv.Icon;
 }
Example #3
0
    public DataMgr.Stage GetSaveStage()
    {
        string mode = PlayerPrefs.GetString("SaveStage");

        DataMgr.Stage stage = DataMgr.Stage.Tutorial;

        if (Utils.IsEnumParseName(typeof(DataMgr.Stage), mode))
        {
            stage = (DataMgr.Stage)Enum.Parse(typeof(DataMgr.Stage), mode);
        }
        else
        {
            stage = DataMgr.Stage.Tutorial;
        }

        return(stage);
    }
Example #4
0
    public StageMapSettingInfo(StageMapSettingCSV csv)
    {
        if (Utils.IsEnumParseName(typeof(DataMgr.Stage), csv.Stage))
        {
            Stage = (DataMgr.Stage)Enum.Parse(typeof(DataMgr.Stage), csv.Stage);
        }
        else
        {
            Stage = DataMgr.Stage.Tutorial;
        }

        Name  = csv.Name;
        index = csv.index;

        if (Utils.IsEnumParseName(typeof(MapType), csv.Type))
        {
            Type = (MapType)Enum.Parse(typeof(MapType), csv.Type);
        }
        else
        {
            Type = MapType.None;
        }
    }
Example #5
0
 public void SetSaveStage(DataMgr.Stage stage)
 {
     NowStage = stage;
     PlayerPrefs.SetString("SaveStage", stage.ToString());
 }