working on humbie still

This commit is contained in:
2025-10-24 13:54:27 +02:00
parent 98cf38ac00
commit 18effac005
33 changed files with 359 additions and 129 deletions

View File

@@ -4,6 +4,7 @@ using RebootKit.Engine.Main;
using RebootKit.Engine.Network;
using RebootKit.Engine.Simulation;
using RebootReality.jelycho.InfectedArea;
using RebootReality.jelycho.Main;
using Unity.Mathematics;
using UnityEngine;
using UnityEngine.AddressableAssets;

View File

@@ -1,5 +1,6 @@
using RebootKit.Engine.Network;
using RebootKit.Engine.Simulation;
using RebootReality.jelycho.Actors;
using RebootReality.jelycho.Enemies;
using UnityEngine;
@@ -24,7 +25,7 @@ namespace RebootReality.jelycho.Beacons {
}
}
public class MotherActor : Actor, IKillable {
public class MotherActor : Actor, IHasHealth {
MotherActorData m_ActorData = new MotherActorData();
[field: SerializeField] public Transform GutConnector { get; private set; }
@@ -35,16 +36,24 @@ namespace RebootReality.jelycho.Beacons {
protected override IActorData CreateActorData() {
return m_ActorData;
}
//
// @MARK: IKillable
//
// @MARK: IHasHealth
//
public ulong Health {
get {
return m_ActorData.Health;
}
private set {
m_ActorData.Health = value;
}
}
[field: SerializeField] public ulong MaxHealth { get; private set; }
public bool IsAlive() {
return m_ActorData.Health > 0;
}
public ulong OnHit(Actor attacker, ulong damage) {
return damage;
}
}
}