Skip to content

Commit

Permalink
Remove th125.ttinclude
Browse files Browse the repository at this point in the history
  • Loading branch information
y-iihoshi committed Jan 2, 2024
1 parent 308035e commit 5378241
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 47 deletions.
13 changes: 0 additions & 13 deletions TemplateGenerator/Templates/th125.ttinclude

This file was deleted.

18 changes: 10 additions & 8 deletions TemplateGenerator/Templates/th125bestshot1.tt
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th125.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th125" #>
<#@ output extension=".html" encoding="utf-8" #>
<!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 @@ -25,7 +26,7 @@
<body>

<header>
<h1><#= title #> ベストショット一覧</h1>
<h1><#= Definitions.Title #> ベストショット一覧</h1>
<hr />
<nav>
<ul>
Expand All @@ -36,7 +37,7 @@
</ul>
<ul>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<li><a href="#<#= level.Value.Id #>"><#= level.Value.LongName #></a></li>
Expand All @@ -51,14 +52,15 @@

<#
var charaKey = "A";
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<section>
<h2 id="<#= level.Value.Id #>"><#= level.Value.LongName #></h2>
<#
var scenes =
(level.Key == "S") ? spoilerScenesPerChara[charaKey] : Enumerable.Range(1, scenesPerLevel[level.Key]);
var scenes = (level.Key == "S")
? Definitions.SpoilerScenesPerCharacter[charaKey]
: Enumerable.Range(1, Definitions.NumScenesPerLevel[level.Key]);
foreach (var scene in scenes)
{
#>
Expand Down Expand Up @@ -89,7 +91,7 @@
</section>

<#
if (level.Key != levels.Last().Key)
if (level.Key != Definitions.LevelNames.Last().Key)
{
#>
<hr />
Expand Down
18 changes: 10 additions & 8 deletions TemplateGenerator/Templates/th125bestshot2.tt
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th125.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th125" #>
<#@ output extension=".html" encoding="utf-8" #>
<!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 @@ -25,7 +26,7 @@
<body>

<header>
<h1><#= title #> ベストショット一覧</h1>
<h1><#= Definitions.Title #> ベストショット一覧</h1>
<hr />
<nav>
<ul>
Expand All @@ -36,7 +37,7 @@
</ul>
<ul>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<li><a href="#<#= level.Value.Id #>"><#= level.Value.LongName #></a></li>
Expand All @@ -51,14 +52,15 @@

<#
var charaKey = "H";
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<section>
<h2 id="<#= level.Value.Id #>"><#= level.Value.LongName #></h2>
<#
var scenes =
(level.Key == "S") ? spoilerScenesPerChara[charaKey] : Enumerable.Range(1, scenesPerLevel[level.Key]);
var scenes = (level.Key == "S")
? Definitions.SpoilerScenesPerCharacter[charaKey]
: Enumerable.Range(1, Definitions.NumScenesPerLevel[level.Key]);
foreach (var scene in scenes)
{
#>
Expand Down Expand Up @@ -89,7 +91,7 @@
</section>

<#
if (level.Key != levels.Last().Key)
if (level.Key != Definitions.LevelNames.Last().Key)
{
#>
<hr />
Expand Down
20 changes: 11 additions & 9 deletions TemplateGenerator/Templates/th125score1.tt
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th125.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th125" #>
<#@ output extension=".html" encoding="utf-8" #>
<!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 @@ -28,7 +29,7 @@
<body>

<header>
<h1><#= title #> スコアデータ全般</h1>
<h1><#= Definitions.Title #> スコアデータ全般</h1>
<hr />
<nav>
<ul>
Expand All @@ -39,7 +40,7 @@
</ul>
<ul>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<li><a href="#<#= level.Value.Id #>"><#= level.Value.LongName #></a></li>
Expand All @@ -58,7 +59,7 @@

<#
var charaKey = "A";
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<table class="score_per_level">
Expand All @@ -76,8 +77,9 @@
</thead>
<tbody>
<#
var scenes =
(level.Key == "S") ? spoilerScenesPerChara[charaKey] : Enumerable.Range(1, scenesPerLevel[level.Key]);
var scenes = (level.Key == "S")
? Definitions.SpoilerScenesPerCharacter[charaKey]
: Enumerable.Range(1, Definitions.NumScenesPerLevel[level.Key]);
foreach (var scene in scenes)
{
#>
Expand Down Expand Up @@ -131,8 +133,8 @@
</tr>
<tr>
<th scope="row">クリアシーン数</th>
<td class="rate">%T125SCRTL<#= charaKey #>15 / <#= numScenesPerCharaInGame[charaKey] #></td>
<td class="rate">%T125SCRTL<#= charaKey #>25 / <#= numScenesPerChara[charaKey] #></td>
<td class="rate">%T125SCRTL<#= charaKey #>15 / <#= Definitions.NumScenesPerCharacterInGame[charaKey] #></td>
<td class="rate">%T125SCRTL<#= charaKey #>25 / <#= Definitions.NumScenesPerCharacter[charaKey] #></td>
</tr>
<tr>
<th scope="row">総プレイ時間</th>
Expand Down
20 changes: 11 additions & 9 deletions TemplateGenerator/Templates/th125score2.tt
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th125.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th125" #>
<#@ output extension=".html" encoding="utf-8" #>
<!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 @@ -28,7 +29,7 @@
<body>

<header>
<h1><#= title #> スコアデータ全般</h1>
<h1><#= Definitions.Title #> スコアデータ全般</h1>
<hr />
<nav>
<ul>
Expand All @@ -39,7 +40,7 @@
</ul>
<ul>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<li><a href="#<#= level.Value.Id #>"><#= level.Value.LongName #></a></li>
Expand All @@ -58,7 +59,7 @@

<#
var charaKey = "H";
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<table class="score_per_level">
Expand All @@ -76,8 +77,9 @@
</thead>
<tbody>
<#
var scenes =
(level.Key == "S") ? spoilerScenesPerChara[charaKey] : Enumerable.Range(1, scenesPerLevel[level.Key]);
var scenes = (level.Key == "S")
? Definitions.SpoilerScenesPerCharacter[charaKey]
: Enumerable.Range(1, Definitions.NumScenesPerLevel[level.Key]);
foreach (var scene in scenes)
{
#>
Expand Down Expand Up @@ -131,8 +133,8 @@
</tr>
<tr>
<th scope="row">クリアシーン数</th>
<td class="rate">%T125SCRTL<#= charaKey #>15 / <#= numScenesPerCharaInGame[charaKey] #></td>
<td class="rate">%T125SCRTL<#= charaKey #>25 / <#= numScenesPerChara[charaKey] #></td>
<td class="rate">%T125SCRTL<#= charaKey #>15 / <#= Definitions.NumScenesPerCharacterInGame[charaKey] #></td>
<td class="rate">%T125SCRTL<#= charaKey #>25 / <#= Definitions.NumScenesPerCharacter[charaKey] #></td>
</tr>
<tr>
<th scope="row">総プレイ時間</th>
Expand Down

0 comments on commit 5378241

Please sign in to comment.