private List <string> SetGraphicTypeHeader(MapEventPage.GraphicTypes graphicType) { var graphicTypeHeader = new List <string>() { "GraphicType" }; switch (graphicType) { case MapEventPage.GraphicTypes.NoGraphic: { break; } case MapEventPage.GraphicTypes.CharaChip: { graphicTypeHeader.AddRange(new List <string>() { "CharaAnimeNumber", "CharaDirection", "GraphicFilePath" }); break; } case MapEventPage.GraphicTypes.TileSet: { graphicTypeHeader.AddRange(new List <string>() { "TileSetChipID", "GraphicFilePath" }); break; } } return(graphicTypeHeader); }
/// <summary> /// MapEventPage.GraphicTypes型をグラフィックの設定タイプ名に変換する /// </summary> /// <param name="graphicType"></param> /// <returns></returns> public static string ConvertGraphicTypesToName(MapEventPage.GraphicTypes graphicType) { switch (graphicType) { case MapEventPage.GraphicTypes.NoGraphic: return("グラフィック無し"); case MapEventPage.GraphicTypes.CharaChip: return("キャラチップ"); case MapEventPage.GraphicTypes.TileSet: return("タイルセット"); default: return(""); } }
private List <List <string> > SetGraphicTypeData(MapEventPage mapEventPage, MapEventPage.GraphicTypes graphicType) { var graphicTypeData = new List <List <string> >(); var record = new List <string>() { Utils.WodiKs.ConvertGraphicTypesToName(graphicType) }; switch (graphicType) { case MapEventPage.GraphicTypes.NoGraphic: { break; } case MapEventPage.GraphicTypes.CharaChip: { record.AddRange(new List <string>() { mapEventPage.CharaAnimeNumber.ToString(), mapEventPage.CharaDirection.ToString(), Utils.String.Trim(mapEventPage.GraphicFilePath) }); break; } case MapEventPage.GraphicTypes.TileSet: { record.AddRange(new List <string>() { mapEventPage.TileSetChipID.ToString(), Utils.String.Trim(mapEventPage.GraphicFilePath) }); break; } } graphicTypeData.Add(record); return(graphicTypeData); }