Change project using mud template, add test user pages

This commit is contained in:
Yuchen Ji
2022-04-24 02:29:55 +08:00
parent b486b5b36a
commit d89065e58a
31 changed files with 411 additions and 35 deletions
+10
View File
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>SharedProject</RootNamespace>
</PropertyGroup>
</Project>
+17
View File
@@ -0,0 +1,17 @@
namespace SharedProject.enums;
public static class PlayOptions
{
public enum FastSlowIndicator
{
NotUsed = 3,
NearAvatar = 1,
NearJudgement = 2
}
public enum FeverTranceShow
{
NotUsed = 2,
Show = 1
}
}
+12
View File
@@ -0,0 +1,12 @@
using SharedProject.enums;
namespace SharedProject.models;
public class PlayOption
{
public long CardId { get; set; }
public PlayOptions.FastSlowIndicator FastSlowIndicator { get; set; }
public PlayOptions.FeverTranceShow FeverTrance { get; set; }
}
+3
View File
@@ -0,0 +1,3 @@
namespace SharedProject.models;
public record User(long CardId, string PlayerName);
+3
View File
@@ -0,0 +1,3 @@
namespace SharedProject.models;
public record UserDetail(long CardId, string PlayerName, PlayOption PlayOption);