-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOctopusModdedStateCDAuthoring.cs
More file actions
30 lines (27 loc) · 1004 Bytes
/
OctopusModdedStateCDAuthoring.cs
File metadata and controls
30 lines (27 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using CoreLib.Components;
using CoreLib.Submodules.ModComponent;
using Il2CppInterop.Runtime.Attributes;
using Il2CppInterop.Runtime.InteropTypes.Fields;
using Unity.Entities;
using Unity.Mathematics;
namespace PainMod;
[Il2CppImplements(typeof(IConvertGameObjectToEntity))]
public class OctopusModdedStateCDAuthoring : ModCDAuthoringBase
{
public Il2CppValueField<float> hpToEnter;
public Il2CppValueField<float> hpToEnter2;
public Il2CppValueField<int> iteration;
public Il2CppValueField<int> tentacleCap;
public OctopusModdedStateCDAuthoring(IntPtr ptr) : base(ptr) { }
public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem)
{
dstManager.AddModComponentData(entity, new OctopusModdedStateCD()
{
HpRatioToEnterState = hpToEnter,
HpRatioToEnterState2 = hpToEnter2,
iteration = iteration,
maxTentacleCap = tentacleCap
});
}
}