-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #373 from SapiensAnatis/develop
Merge develop into master
- Loading branch information
Showing
304 changed files
with
92,365 additions
and
54,220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "test-report" | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["test"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
report: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dorny/test-reporter@v1 | ||
with: | ||
artifact: test-results | ||
name: test report | ||
path: "*.trx" | ||
reporter: dotnet-trx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using DragaliaAPI.Shared.Definitions.Enums; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace DragaliaAPI.Database.Entities; | ||
|
||
[Index(nameof(DeviceAccountId))] | ||
[PrimaryKey(nameof(DeviceAccountId), nameof(EmblemId))] | ||
public class DbEmblem : IDbHasAccountId | ||
{ | ||
/// <inheritdoc /> | ||
public virtual DbPlayer? Owner { get; set; } | ||
|
||
/// <inheritdoc /> | ||
[ForeignKey(nameof(Owner))] | ||
public required string DeviceAccountId { get; set; } | ||
|
||
[Column("EmblemId")] | ||
public required Emblems EmblemId { get; set; } | ||
|
||
[Column("IsNew")] | ||
public bool IsNew { get; set; } | ||
|
||
[Column("GetTime")] | ||
public DateTimeOffset GetTime { get; set; } = DateTimeOffset.UnixEpoch; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace DragaliaAPI.Database.Entities; | ||
|
||
[PrimaryKey(nameof(DeviceAccountId), nameof(Id))] | ||
public class DbLoginBonus : IDbHasAccountId | ||
{ | ||
public virtual DbPlayer? Owner { get; set; } | ||
|
||
[ForeignKey(nameof(Owner))] | ||
public required string DeviceAccountId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the ID of the login bonus. | ||
/// </summary> | ||
public int Id { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the most recent day earned for this login bonus. | ||
/// </summary> | ||
public int CurrentDay { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether the login bonus has been completed. | ||
/// </summary> | ||
public bool IsComplete { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using System.ComponentModel.DataAnnotations; | ||
using DragaliaAPI.Shared.Definitions.Enums; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace DragaliaAPI.Database.Entities; | ||
|
||
[Index(nameof(DeviceAccountId))] | ||
[PrimaryKey(nameof(DeviceAccountId), nameof(CharaId))] | ||
public class DbPlayerDmodeChara : IDbHasAccountId | ||
{ | ||
/// <inheritdoc /> | ||
public virtual DbPlayer? Owner { get; set; } | ||
|
||
/// <inheritdoc /> | ||
[ForeignKey(nameof(Owner))] | ||
[Required] | ||
public required string DeviceAccountId { get; set; } | ||
|
||
[Column("CharaId")] | ||
public required Charas CharaId { get; set; } | ||
|
||
[Column("MaxFloor")] | ||
public int MaxFloor { get; set; } | ||
|
||
[Column("MaxScore")] | ||
public int MaxScore { get; set; } | ||
|
||
[Column("SelectedServitorId")] | ||
public int SelectedServitorId { get; set; } | ||
|
||
[Column("SelectEditSkillCharaId1")] | ||
public Charas SelectEditSkillCharaId1 { get; set; } | ||
|
||
[Column("SelectEditSkillCharaId2")] | ||
public Charas SelectEditSkillCharaId2 { get; set; } | ||
|
||
[Column("SelectEditSkillCharaId3")] | ||
public Charas SelectEditSkillCharaId3 { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using System.ComponentModel.DataAnnotations; | ||
using DragaliaAPI.Shared.Definitions.Enums; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace DragaliaAPI.Database.Entities; | ||
|
||
[PrimaryKey(nameof(DeviceAccountId))] | ||
public class DbPlayerDmodeDungeon : IDbHasAccountId | ||
{ | ||
/// <inheritdoc /> | ||
public virtual DbPlayer? Owner { get; set; } | ||
|
||
/// <inheritdoc /> | ||
[ForeignKey(nameof(Owner))] | ||
[Required] | ||
public required string DeviceAccountId { get; set; } | ||
|
||
[Column("CharaId")] | ||
public Charas CharaId { get; set; } | ||
|
||
[Column("Floor")] | ||
public int Floor { get; set; } | ||
|
||
[Column("QuestTime")] | ||
public int QuestTime { get; set; } | ||
|
||
[Column("DungeonScore")] | ||
public int DungeonScore { get; set; } | ||
|
||
[Column("IsPlayEnd")] | ||
public bool IsPlayEnd { get; set; } | ||
|
||
[Column("State")] | ||
public DungeonState State { get; set; } = DungeonState.Waiting; | ||
|
||
public void Clear() | ||
{ | ||
CharaId = 0; | ||
Floor = 0; | ||
QuestTime = 0; | ||
DungeonScore = 0; | ||
IsPlayEnd = false; | ||
State = DungeonState.Waiting; | ||
} | ||
} |
Oops, something went wrong.