~ruther/NosSmooth

01d9b23338aa4dbb7494b6f170f9e38bcfacf790 — Rutherther 2 years ago 9658174
feat(data): add attack type and element types
A Data/NosSmooth.Data.Abstractions/Enums/AttackType.cs => Data/NosSmooth.Data.Abstractions/Enums/AttackType.cs +55 -0
@@ 0,0 1,55 @@
//
//  AttackType.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace NosSmooth.Data.Abstractions.Enums;

/// <summary>
/// A type of skill attack.
/// </summary>
public enum AttackType
{
    /// <summary>
    /// A melee attack.
    /// </summary>
    Melee = 0,

    /// <summary>
    /// A ranged attack.
    /// </summary>
    Ranged = 1,

    /// <summary>
    /// A magical attack.
    /// </summary>
    Magical = 2,

    /// <summary>
    /// Another type of attack.
    /// </summary>
    /// <remarks>
    /// Used only for 3 skills.
    /// 1. Pajama's (sp) pillow fight.
    /// 2. Chicken's (sp) jump.
    /// 3. Chicken's (sp) kick.
    /// </remarks>
    Other = 3,

    /// <summary>
    /// Charged attacks.
    /// </summary>
    /// <remarks>
    /// Seems no different from melee or ranged.
    /// </remarks>
    Charge = 4,

    /// <summary>
    /// A dash attack.
    /// </summary>
    /// <remarks>
    /// Should send location to dash to to the server.
    /// </remarks>
    Dash = 5
}
\ No newline at end of file

A Data/NosSmooth.Data.Abstractions/Enums/Element.cs => Data/NosSmooth.Data.Abstractions/Enums/Element.cs +38 -0
@@ 0,0 1,38 @@
//
//  Element.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace NosSmooth.Data.Abstractions.Enums;

/// <summary>
/// Element type.
/// </summary>
public enum Element
{
    /// <summary>
    /// No element type.
    /// </summary>
    Neutral = 0,

    /// <summary>
    /// Fire element.
    /// </summary>
    Fire = 1,

    /// <summary>
    /// Water element.
    /// </summary>
    Water = 2,

    /// <summary>
    /// Light element.
    /// </summary>
    Light = 3,

    /// <summary>
    /// Dark element.
    /// </summary>
    Dark = 4
}
\ No newline at end of file

Do not follow this link