From df0c28c3a136e9a214a07d03e141ab2c39488e49 Mon Sep 17 00:00:00 2001
From: automatic9045 <67314487+automatic9045@users.noreply.github.com>
Date: Sat, 9 Sep 2023 14:41:01 +0900
Subject: [PATCH] =?UTF-8?q?feat:=20[=E3=82=AF=E3=83=A9=E3=82=B9=E3=83=A9?=
=?UTF-8?q?=E3=83=83=E3=83=91=E3=83=BC]=E5=81=9C=E8=BB=8A=E5=A0=B4?=
=?UTF-8?q?=E3=81=AB=E3=81=8A=E3=81=91=E3=82=8B=E4=B9=97=E9=99=8D=E3=81=AE?=
=?UTF-8?q?=E9=80=B2=E6=8D=97=E3=82=92=E5=8F=96=E5=BE=97=E3=81=A7=E3=81=8D?=
=?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Libs/BveTypes/BveTypes.csproj | 1 +
.../Public/Passenger.StationProcess.cs | 37 +++++++++++++++++++
.../ClassWrappers/Public/Passenger.cs | 12 +++++-
Libs/BveTypes/WrapTypes/5.8.7554.391.xml | 7 ++++
Libs/BveTypes/WrapTypes/6.0.7554.619.xml | 7 ++++
5 files changed, 62 insertions(+), 2 deletions(-)
create mode 100644 Libs/BveTypes/ClassWrappers/Public/Passenger.StationProcess.cs
diff --git a/Libs/BveTypes/BveTypes.csproj b/Libs/BveTypes/BveTypes.csproj
index ed974e7e..8101d0a9 100644
--- a/Libs/BveTypes/BveTypes.csproj
+++ b/Libs/BveTypes/BveTypes.csproj
@@ -106,6 +106,7 @@
+
diff --git a/Libs/BveTypes/ClassWrappers/Public/Passenger.StationProcess.cs b/Libs/BveTypes/ClassWrappers/Public/Passenger.StationProcess.cs
new file mode 100644
index 00000000..6e6c7b79
--- /dev/null
+++ b/Libs/BveTypes/ClassWrappers/Public/Passenger.StationProcess.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BveTypes.ClassWrappers
+{
+ public partial class Passenger
+ {
+ ///
+ /// 停車場における自列車の乗客の乗降の進捗を指定します。
+ ///
+ public enum StationProcess
+ {
+ ///
+ /// 乗降が開始されていないことを指定します。
+ ///
+ Ready,
+
+ ///
+ /// 降車中であることを指定します。
+ ///
+ Alighting,
+
+ ///
+ /// 乗車中であることを指定します。
+ ///
+ Boarding,
+
+ ///
+ /// 乗降が完了したことを指定します。
+ ///
+ Completed,
+ }
+ }
+}
diff --git a/Libs/BveTypes/ClassWrappers/Public/Passenger.cs b/Libs/BveTypes/ClassWrappers/Public/Passenger.cs
index 554097ac..90023513 100644
--- a/Libs/BveTypes/ClassWrappers/Public/Passenger.cs
+++ b/Libs/BveTypes/ClassWrappers/Public/Passenger.cs
@@ -10,14 +10,16 @@
namespace BveTypes.ClassWrappers
{
///
- /// 乗客の動作をシミュレートします。
+ /// 自列車の乗客を表します。
///
- public class Passenger : ClassWrapperBase
+ public partial class Passenger : ClassWrapperBase
{
[InitializeClassWrapper]
private static void Initialize(BveTypeSet bveTypes)
{
ClassMemberSet members = bveTypes.GetClassInfoOf();
+
+ StateGetMethod = members.GetSourcePropertyGetterOf(nameof(State));
}
///
@@ -35,5 +37,11 @@ protected Passenger(object src) : base(src)
/// オリジナル オブジェクトをラップした クラスのインスタンス。
[CreateClassWrapperFromSource]
public static Passenger FromSource(object src) => src is null ? null : new Passenger(src);
+
+ private static FastMethod StateGetMethod;
+ ///
+ /// 停車場における乗降の進捗を取得します。
+ ///
+ public StationProcess State => (StationProcess)StateGetMethod.Invoke(Src, null);
}
}
diff --git a/Libs/BveTypes/WrapTypes/5.8.7554.391.xml b/Libs/BveTypes/WrapTypes/5.8.7554.391.xml
index 10adb260..f8816a9e 100644
--- a/Libs/BveTypes/WrapTypes/5.8.7554.391.xml
+++ b/Libs/BveTypes/WrapTypes/5.8.7554.391.xml
@@ -568,6 +568,13 @@
+
+
+
+
+
+
+
diff --git a/Libs/BveTypes/WrapTypes/6.0.7554.619.xml b/Libs/BveTypes/WrapTypes/6.0.7554.619.xml
index 10adb260..f8816a9e 100644
--- a/Libs/BveTypes/WrapTypes/6.0.7554.619.xml
+++ b/Libs/BveTypes/WrapTypes/6.0.7554.619.xml
@@ -568,6 +568,13 @@
+
+
+
+
+
+
+