Skip to content

Commit

Permalink
Remove th08.ttinclude
Browse files Browse the repository at this point in the history
  • Loading branch information
y-iihoshi committed Jan 2, 2024
1 parent 3f77c49 commit 3c7f057
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 124 deletions.
39 changes: 0 additions & 39 deletions TemplateGenerator/Templates/th08.ttinclude

This file was deleted.

58 changes: 32 additions & 26 deletions TemplateGenerator/Templates/th08card1.tt
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th08.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th08" #>
<#@ output extension=".html" encoding="utf-8" #>
<#
var levelKeyTotal = Definitions.LevelKeysTotalFirst.First();
var charaKeyTotal = Definitions.CharacterKeysTotalFirst.First();
var stageKeyTotal = Definitions.StageKeysTotalFirst.First();
#>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><#= title #> スペルカードデータ</title>
<title><#= Definitions.Title #> スペルカードデータ</title>
<link rel="stylesheet" href="style.css" />
<style>
/* <![CDATA[ */
Expand All @@ -31,7 +37,7 @@
<body>

<header>
<h1><#= title #> スペルカードデータ</h1>
<h1><#= Definitions.Title #> スペルカードデータ</h1>
<hr />
<nav>
<ul>
Expand Down Expand Up @@ -61,18 +67,18 @@
<th class="number">No.</th>
<th class="card">スペルカード名<br />(難易度)</th>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<th class="character"><#= charactersWithTotal[charaKey].ShortName #></th>
<th class="character"><#= Definitions.CharacterWithTotalNames[charaKey].ShortName #></th>
<#
}
#>
</tr>
</thead>
<tbody>
<#
foreach (var card in Enumerable.Range(1, numCards))
foreach (var card in Enumerable.Range(1, Definitions.NumCardsWithoutLastWord))
{
var cardStr = card.ToString("D2");
var cardKey = card.ToString("D3");
Expand All @@ -81,7 +87,7 @@
<td class="number">No.<#= cardStr #></td>
<td class="card">%T08CARD<#= cardKey #>N<br />(%T08CARD<#= cardKey #>R)</td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
Expand All @@ -108,7 +114,7 @@
<tr>
<td colspan="2"><#= cardStrTotal #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
Expand All @@ -132,30 +138,30 @@
<tr>
<th class="level">難易度</th>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<th class="character"><#= charactersWithTotal[charaKey].ShortName #></th>
<th class="character"><#= Definitions.CharacterWithTotalNames[charaKey].ShortName #></th>
<#
}
#>
</tr>
</thead>
<tbody>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<tr>
<td class="level"><#= level.Value #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
#>%T08CRGS<#= level.Key #><#= charaKey #><#= stageKeyTotal #>1 / <#
#>%T08CRGS<#= level.Key #><#= charaKey #><#= stageKeyTotal #>2 / <#
#><#= cardsPerLevel[level.Key] #><#
#><#= Definitions.NumCardsPerLevel[level.Key] #><#
#></td>
<#
}
Expand All @@ -167,15 +173,15 @@
</tbody>
<tfoot>
<tr>
<td><#= levelsWithTotal[levelKeyTotal] #></td>
<td><#= Definitions.LevelWithTotalNames[levelKeyTotal] #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
#>%T08CRGS<#= levelKeyTotal #><#= charaKey #><#= stageKeyTotal #>1 / <#
#>%T08CRGS<#= levelKeyTotal #><#= charaKey #><#= stageKeyTotal #>2 / <#
#><#= numCards #><#
#><#= Definitions.NumCardsWithoutLastWord #><#
#></td>
<#
}
Expand All @@ -190,30 +196,30 @@
<tr>
<th class="stage">ステージ</th>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<th class="character"><#= charactersWithTotal[charaKey].ShortName #></th>
<th class="character"><#= Definitions.CharacterWithTotalNames[charaKey].ShortName #></th>
<#
}
#>
</tr>
</thead>
<tbody>
<#
foreach (var stage in stages)
foreach (var stage in Definitions.StageNames)
{
var levelKey = (stage.Key == "EX") ? "X" : levelKeyTotal;
var stageKey = (stage.Key == "EX") ? stageKeyTotal : stage.Key;
#>
<tr>
<td class="stage"><#= stage.Value #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
if (((stageKey == "4A") || (stageKey == "4B")) &&
(charaKey != charaKeyTotal) &&
(unreachableStagesPerChara[charaKey] == stageKey))
(Definitions.UnreachableStagesPerCharacter[charaKey] == stageKey))
{
#>
<td class="rate"></td>
Expand All @@ -225,7 +231,7 @@
<td class="rate"><#
#>%T08CRGS<#= levelKey #><#= charaKey #><#= stageKey #>1 / <#
#>%T08CRGS<#= levelKey #><#= charaKey #><#= stageKey #>2 / <#
#><#= cardsPerStage[stage.Key] #><#
#><#= Definitions.NumCardsPerStage[stage.Key] #><#
#></td>
<#
}
Expand All @@ -238,13 +244,13 @@
</tbody>
<tfoot>
<tr>
<td class="stage"><#= stagesWithTotal[stageKeyTotal] #></td>
<td class="stage"><#= Definitions.StageWithTotalNames[stageKeyTotal] #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
var cards = numCards;
var cards = Definitions.NumCardsWithoutLastWord;
if (charaKey != charaKeyTotal)
cards -= cardsPerStage[unreachableStagesPerChara[charaKey]];
cards -= Definitions.NumCardsPerStage[Definitions.UnreachableStagesPerCharacter[charaKey]];
#>
<td class="rate"><#
#>%T08CRGS<#= levelKeyTotal #><#= charaKey #><#= stageKeyTotal #>1 / <#
Expand Down
Loading

0 comments on commit 3c7f057

Please sign in to comment.