mirror of
https://github.com/Campofinale/CampofinaleBackup.git
synced 2025-12-16 09:54:36 +00:00
24 lines
598 B
C#
24 lines
598 B
C#
using Campofinale.Resource;
|
|
using static Campofinale.Game.Factory.FactoryNode;
|
|
|
|
namespace Campofinale.Game.Factory.Components
|
|
{
|
|
public class FComponentBattle : FComponent
|
|
{
|
|
public int EnergyCurrent=100;
|
|
public FComponentBattle(uint id) : base(id, FCComponentType.Battle, FCComponentPos.Battle1)
|
|
{
|
|
}
|
|
|
|
public override void SetComponentInfo(ScdFacCom proto)
|
|
{
|
|
proto.Battle = new()
|
|
{
|
|
EnergyCurrent=100,
|
|
EnergyMax=100,
|
|
InOverloading=false
|
|
};
|
|
}
|
|
}
|
|
}
|