-
Notifications
You must be signed in to change notification settings - Fork 0
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 #8 from FightCore/feature/angular-16
Feature/angular 16
Showing
185 changed files
with
11,553 additions
and
6,072 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
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
37 changes: 37 additions & 0 deletions
37
Backend/FightCore.Api/Configuration/Profiles/SubactionProfile.cs
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,37 @@ | ||
using AutoMapper; | ||
using FightCore.Api.DataTransferObjects.Subactions; | ||
using FightCore.Api.DataTransferObjects.Subactions.Commands; | ||
using FightCore.Models.Subactions; | ||
using FightCore.Models.Subactions.Commands; | ||
using MatchType = FightCore.Models.Subactions.MatchType; | ||
|
||
namespace FightCore.Api.Configuration.Profiles | ||
{ | ||
public class SubactionProfile : Profile | ||
{ | ||
public SubactionProfile() | ||
{ | ||
CreateMap<Subaction, SubactionDto>(); | ||
CreateMap<ScriptCommand, ScriptCommandDto>().IncludeAllDerived(); | ||
CreateMap<AutoCancelCommand, AutoCancelCommandDto>().IncludeBase<ScriptCommand, ScriptCommandDto>(); | ||
CreateMap<BodyStateCommand, BodyStateCommandDto>().IncludeBase<ScriptCommand, ScriptCommandDto>(); | ||
CreateMap<BodyType, BodyTypeDto>(); | ||
CreateMap<ElementType, ElementTypeDto>(); | ||
CreateMap<HitboxCommand, HitboxCommandDto>().IncludeBase<ScriptCommand, ScriptCommandDto>(); | ||
CreateMap<HurtboxInteractionFlags, HurtboxInteractionFlagsDto>(); | ||
CreateMap<PartialBodystateCommand, PartialBodystateCommandDto>().IncludeBase<ScriptCommand, ScriptCommandDto>(); | ||
CreateMap<PointerCommand, PointerCommandDto>().IncludeBase<ScriptCommand, ScriptCommandDto>(); | ||
CreateMap<StartLoopCommand, StartLoopCommandDto>().IncludeBase<ScriptCommand, ScriptCommandDto>(); | ||
CreateMap<ThrowCommand, ThrowCommandDto>().IncludeBase<ScriptCommand, ScriptCommandDto>(); | ||
CreateMap<ThrowElementType, ThrowElementTypeDto>(); | ||
CreateMap<ThrowType, ThrowTypeDto>(); | ||
CreateMap<TimerCommand, TimerCommandDto>().IncludeBase<ScriptCommand, ScriptCommandDto>(); | ||
CreateMap<UnsolvedCommand, UnsolvedCommandDto>().IncludeBase<ScriptCommand, ScriptCommandDto>(); | ||
CreateMap<VisibilityCommand, VisibilityCommandDto>().IncludeBase<ScriptCommand, ScriptCommandDto>(); | ||
CreateMap<VisibilityConstant, VisibilityConstantDto>(); | ||
CreateMap<MatchType, MatchTypeDto>(); | ||
CreateMap<MoveSubaction, MoveSubactionDto>(); | ||
CreateMap<SubactionHeader, SubactionHeaderDto>(); | ||
} | ||
} | ||
} |
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
11 changes: 11 additions & 0 deletions
11
Backend/FightCore.Api/DataTransferObjects/Exports/Characters/BasicExportCharacter.cs
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,11 @@ | ||
using FightCore.Api.DataTransferObjects.Abstract; | ||
|
||
namespace FightCore.Api.DataTransferObjects.Exports.Characters | ||
{ | ||
public class BasicExportCharacter : BaseCharacter | ||
{ | ||
public BaseCharacterMiscInfo CharacterInfo { get; set; } | ||
|
||
public BaseCharacterStatistics CharacterStatistics { 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
3 changes: 3 additions & 0 deletions
3
Backend/FightCore.Api/DataTransferObjects/Exports/Full/FullExportMove.cs
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
using FightCore.Api.DataTransferObjects.Abstract; | ||
using FightCore.Api.DataTransferObjects.Subactions; | ||
|
||
namespace FightCore.Api.DataTransferObjects.Exports.Full | ||
{ | ||
public class FullExportMove : BaseMove | ||
{ | ||
public List<BaseHitbox> Hitboxes { get; set; } | ||
|
||
public List<MoveSubactionDto> MoveSubactions { get; set; } | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/AutoCancelCommandDto.cs
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,9 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public class AutoCancelCommandDto : ScriptCommandDto | ||
{ | ||
public bool AutoCancelEnabled { get; set; } | ||
|
||
public override CommandType CommandType => CommandType.AutoCancel; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/BodyStateCommandDto.cs
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,9 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public class BodyStateCommandDto : ScriptCommandDto | ||
{ | ||
public BodyTypeDto BodyType { get; set; } | ||
|
||
public override CommandType CommandType => CommandType.BodyState; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/BodyTypeDto.cs
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,9 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public enum BodyTypeDto | ||
{ | ||
Normal = 0x0, | ||
Invulnerable = 0x1, | ||
Intangible = 0x2 | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/CommandType.cs
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,16 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands; | ||
|
||
public enum CommandType | ||
{ | ||
Script = 0, | ||
Unsolved = 1, | ||
AutoCancel = 2, | ||
BodyState = 3, | ||
Hitbox = 4, | ||
PartialBodyState = 5, | ||
Pointer = 6, | ||
StartLoop = 7, | ||
Throw = 8, | ||
Timer = 9, | ||
Visibility = 10, | ||
} |
22 changes: 22 additions & 0 deletions
22
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/ElementTypeDto.cs
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,22 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public enum ElementTypeDto | ||
{ | ||
Normal = 0x00, | ||
Fire = 0x04, | ||
Electric = 0x08, | ||
Slash = 0x0C, | ||
Coin = 0x10, | ||
Ice = 0x14, | ||
Sleep = 0x18, | ||
Sleep2 = 0x1C, | ||
Grounded = 0x20, | ||
Grounded2 = 0x24, | ||
Cape = 0x28, | ||
Empty = 0x2C, | ||
Disabled = 0x30, | ||
ScrewAttack = 0x38, | ||
PoisonFlower = 0x3C, | ||
Nothing = 0x40 | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/HitboxCommandDto.cs
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,49 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public class HitboxCommandDto : ScriptCommandDto | ||
{ | ||
public int HitboxId { get; set; } | ||
|
||
public int UnknownR { get; set; } | ||
|
||
public int BoneId { get; set; } | ||
|
||
public int Unknown0 { get; set; } | ||
|
||
public int UnknownQ { get; set; } | ||
|
||
public int UnknownV { get; set; } | ||
|
||
public int Size { get; set; } | ||
|
||
public int ZOffset { get; set; } | ||
|
||
public int YOffset { get; set; } | ||
|
||
public int XOffset { get; set; } | ||
|
||
public HurtboxInteractionFlagsDto HurtboxInteraction { get; set; } | ||
|
||
public int BaseKnockback { get; set; } | ||
|
||
public int ShieldDamage { get; set; } | ||
|
||
public int SFX { get; set; } | ||
|
||
public bool HitsGround { get; set; } | ||
|
||
public bool HitsAir { get; set; } | ||
|
||
public int KnockbackGrowth { get; set; } | ||
|
||
public int Damage { get; set; } | ||
|
||
public int WeightDependantKnockback { get; set; } | ||
|
||
public ElementTypeDto Element { get; set; } | ||
|
||
public int Angle { get; set; } | ||
|
||
public override CommandType CommandType => CommandType.Hitbox; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/HurtboxInteractionFlagsDto.cs
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,7 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public enum HurtboxInteractionFlagsDto | ||
{ | ||
NoClank, SomeClank, MoreClank, AllClank | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/PartialBodystateCommandDto.cs
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,9 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public class PartialBodystateCommandDto : ScriptCommandDto | ||
{ | ||
public ushort Bone { get; set; } | ||
|
||
public override CommandType CommandType => CommandType.PartialBodyState; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/PointerCommandDto.cs
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,9 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public class PointerCommandDto : ScriptCommandDto | ||
{ | ||
public uint Pointer { get; set; } | ||
|
||
public override CommandType CommandType => CommandType.Pointer; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/ScriptCommandDto.cs
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,21 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public class ScriptCommandDto | ||
{ | ||
public long Id { get; set; } | ||
|
||
public string DisplayName { get; set; } | ||
|
||
public string Name { get; set; } | ||
|
||
public uint Type { get; set; } | ||
|
||
public uint Length { get; set; } | ||
|
||
public string HexString { get; set; } | ||
|
||
public int Order { get; set; } | ||
|
||
public virtual CommandType CommandType => CommandType.Script; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/StartLoopCommandDto.cs
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,9 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public class StartLoopCommandDto : ScriptCommandDto | ||
{ | ||
public ushort Iterations { get; set; } | ||
|
||
public override CommandType CommandType => CommandType.StartLoop; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/ThrowCommandDto.cs
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,21 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public class ThrowCommandDto : ScriptCommandDto | ||
{ | ||
public ThrowTypeDto ThrowType { get; set; } | ||
|
||
public int Damage { get; set; } | ||
|
||
public int KnockbackGrowth { get; set; } | ||
|
||
public int WeightDependantKnockback { get; set; } | ||
|
||
public ThrowElementTypeDto ThrowElement { get; set; } | ||
|
||
public int Angle { get; set; } | ||
|
||
public int BaseKnockback { get; set; } | ||
|
||
public override CommandType CommandType => CommandType.Throw; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/ThrowElementTypeDto.cs
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,11 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public enum ThrowElementTypeDto | ||
{ | ||
Normal = 0x0, | ||
Fire = 0x1, | ||
Electric = 0x2, | ||
Ice = 0x5, | ||
Darkness = 0xD | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/ThrowTypeDto.cs
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,8 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public enum ThrowTypeDto | ||
{ | ||
Throw = 0x00, | ||
Release = 0x01, | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/TimerCommandDto.cs
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,9 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public class TimerCommandDto : ScriptCommandDto | ||
{ | ||
public ushort Frames { get; set; } | ||
|
||
public override CommandType CommandType => CommandType.Timer; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
Backend/FightCore.Api/DataTransferObjects/Subactions/Commands/UnsolvedCommandDto.cs
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,7 @@ | ||
namespace FightCore.Api.DataTransferObjects.Subactions.Commands | ||
{ | ||
public class UnsolvedCommandDto : ScriptCommandDto | ||
{ | ||
public override CommandType CommandType => CommandType.Unsolved; | ||
} | ||
} |
Oops, something went wrong.