Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created February 20, 2025 16:22
Show Gist options
  • Save todorok1/65d6309c5351a6e910d5e2faf5ac9548 to your computer and use it in GitHub Desktop.
Save todorok1/65d6309c5351a6e910d5e2faf5ac9548 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第23回 アイテムの効果に関する設定を保持するクラス
using System;
namespace SimpleRpg
{
/// <summary>
/// アイテムの効果に関する設定を保持するクラスです。
/// </summary>
[Serializable]
public class ItemEffect
{
/// <summary>
/// アイテム効果のカテゴリです。
/// </summary>
public ItemEffectCategory itemEffectCategory;
/// <summary>
/// アイテムの効果範囲です。
/// </summary>
public EffectTarget effectTarget;
/// <summary>
/// 効果量です。
/// </summary>
public int value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment