aboutsummaryrefslogtreecommitdiff
path: root/assets/manual/tables.tex
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2022-07-19 17:43:30 +0200
committerY. Wang <yw05@forksworld.de>2022-07-19 17:52:57 +0200
commit5cc7f50bad779e4f4efb747a74bbce53a7e05cd3 (patch)
treeb4e99693e34cec2b5161faaf4bdda9fab7a1e74a /assets/manual/tables.tex
parent3b167028b38753d776cec777efb07eae23e58a12 (diff)
downloadadvtrains-5cc7f50bad779e4f4efb747a74bbce53a7e05cd3.tar.gz
advtrains-5cc7f50bad779e4f4efb747a74bbce53a7e05cd3.tar.bz2
advtrains-5cc7f50bad779e4f4efb747a74bbce53a7e05cd3.zip
Split manual into multiple files
Diffstat (limited to 'assets/manual/tables.tex')
-rw-r--r--assets/manual/tables.tex27
1 files changed, 27 insertions, 0 deletions
diff --git a/assets/manual/tables.tex b/assets/manual/tables.tex
new file mode 100644
index 0000000..91422b6
--- /dev/null
+++ b/assets/manual/tables.tex
@@ -0,0 +1,27 @@
+\section{Table structures}\label{s:structs}
+
+This section only documents table structures shared among multiple modules. API-specific table structures are documented in the corresponding sections.
+
+\subsection{Signal aspect table}\label{s:sigasp}
+Signal aspect tables may contain the following members:
+\begin{apidoc}{Signal aspect table}
+\item \apifield{main} The aspect of the main signal.
+\item \apifield{type} The type of signal. Please refer to section \ref{s:srtypes} for more information.
+\item \apifield{dst} The aspect of the next main signal.
+\item \apifield{shunt} Whether shunting is allowed.
+\item \apifield{proceed\_as\_main} When shunting is not allowed, whether to let the train continue with shunt mode disabled.
+\end{apidoc}
+
+The \texttt{main} and \texttt{dst} fields may contain one of the following:
+\begin{itemize}
+\item $n \geq 0$, which changes the speed limit of the corresponding type to $n$, or (for distant signals) indicates the speed limit for the upcoming main signal.
+\item $-1$, which lifts the speed limit of the corresponding type, or (for distant signals) indicates that the speed limit is lifted at the upcoming main signal.
+\item \luanil, which keeps the speed limit unchanged.
+\end{itemize}
+
+\subsection{Train speed restriction table}
+The speed restriction table for trains includes the speed limits for a train, where the key is the type of speed limit and the value is the speed limit itself.
+
+%%% Local Variables:
+%%% TeX-master: "a4manual"
+%%% End: \ No newline at end of file