MainHud/EventFighters.cs

Defines a simple data struct EventFighter with properties Name, Hp, Attack and IsAI and a constructor to initialize them. It is a plain model type used to represent a combatant in the game.

using System;
using System.Collections.Generic;

namespace Keyboard_Warriors_.Models
{
	public struct EventFighter
	{
		public string Name { get; set; }
		public int Hp { get; set; }
		public int Attack { get; set; }
		public bool IsAI { get; set; }

		public EventFighter( string name, int hp, int attack, bool isAI )
		{
			Name = name;
			Hp = hp;
			Attack = attack;
			IsAI = isAI;
		}
	}
}