Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled with JetBrains decompiler
- // Type: Sh.Battle.BattleUnit
- // Assembly: Assembly-CSharp, Version=3.7.1.6, Culture=neutral, PublicKeyToken=null
- // MVID: 73AD2860-B05D-44E8-9640-311E39748059
- // Assembly location: C:\Users\Can\Desktop\Il2CppDumper\DummyDll\Assembly-CSharp.dll
- using Il2CppDummyDll;
- using Sh.Animations;
- using Sh.Battle.View;
- using Sh.Battle.Visualizers;
- using Sh.ServerInteraction;
- using Sh.Settings;
- using Sh.Units;
- using Sh.UnityUI.LocationObjectsElements;
- using Sh.VisualEffects;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using UnityEngine;
- namespace Sh.Battle
- {
- public class BattleUnit : MonoBehaviour, IVisualizedBattleObject, IVisualizerTarget, IPhotographable, IMovable, IBoneAttachable
- {
- [FieldOffset(Offset = "0x18")]
- private Action HealthChanged;
- private const string DefaultDeathSoundPrefix = "Battle_die_";
- [FieldOffset(Offset = "0x20")]
- private int \u003CId\u003Ek__BackingField;
- [FieldOffset(Offset = "0x24")]
- private BattleObject.Types.Side \u003CSide\u003Ek__BackingField;
- [FieldOffset(Offset = "0x28")]
- private string \u003CName\u003Ek__BackingField;
- [FieldOffset(Offset = "0x30")]
- private bool \u003CIsMoving\u003Ek__BackingField;
- [FieldOffset(Offset = "0x38")]
- private string \u003CDeathSound\u003Ek__BackingField;
- [FieldOffset(Offset = "0x40")]
- private Sex \u003CUnitSex\u003Ek__BackingField;
- [FieldOffset(Offset = "0x48")]
- private EquipmentTier \u003CWeaponTier\u003Ek__BackingField;
- [FieldOffset(Offset = "0x50")]
- private bool \u003CEnemy\u003Ek__BackingField;
- [FieldOffset(Offset = "0x51")]
- private bool \u003CSummon\u003Ek__BackingField;
- [FieldOffset(Offset = "0x52")]
- private bool \u003CIsStatic\u003Ek__BackingField;
- [FieldOffset(Offset = "0x54")]
- private int \u003CHealth\u003Ek__BackingField;
- [FieldOffset(Offset = "0x58")]
- private int \u003CMaxHealth\u003Ek__BackingField;
- [FieldOffset(Offset = "0x5C")]
- private bool \u003CIsDead\u003Ek__BackingField;
- [FieldOffset(Offset = "0x60")]
- private readonly Dictionary<int, BattleUnitAbility> _abilities;
- [FieldOffset(Offset = "0x68")]
- private Vector3 _moveSpeed;
- [FieldOffset(Offset = "0x78")]
- private SkeletonAnimationComponent _animator;
- [FieldOffset(Offset = "0x80")]
- private Action _onVisualizerDone;
- [FieldOffset(Offset = "0x88")]
- private float _beginEffectTime;
- [FieldOffset(Offset = "0x8C")]
- private float _effectDuration;
- [FieldOffset(Offset = "0x90")]
- private Color _effectColor;
- [FieldOffset(Offset = "0xA0")]
- private Color _startEffectColor;
- [FieldOffset(Offset = "0xB0")]
- private bool _effectPingPong;
- [FieldOffset(Offset = "0xB1")]
- private bool _colorEffect;
- [FieldOffset(Offset = "0xB2")]
- private bool _colorEffectIsPrimary;
- [FieldOffset(Offset = "0xB4")]
- private float _baseEffectsScale;
- [FieldOffset(Offset = "0xB8")]
- private BattleUnitHealthBar _healthBar;
- public const string ShadowObjectId = "Shadow";
- [FieldOffset(Offset = "0xC0")]
- private float _lastDeathTime;
- private const int TimeBeforeHideHealth = 0;
- [FieldOffset(Offset = "0xC8")]
- private Sh.ServerInteraction.BattleUnit _data;
- [FieldOffset(Offset = "0xD0")]
- private bool _withWeapon;
- [FieldOffset(Offset = "0xD8")]
- private BattleUiEffectsPool _uiEffectPool;
- [FieldOffset(Offset = "0xE0")]
- private UnitBattlePopupQueue _unitBattleTextsQueue;
- [FieldOffset(Offset = "0xE8")]
- private UnitBattlePopupQueue _artifactEffectsQueue;
- [FieldOffset(Offset = "0xF0")]
- private EffectsByIdCollection _effectsCollection;
- [FieldOffset(Offset = "0xF8")]
- private bool _invertedHealthbarColor;
- private static Func<BattleModifier, bool> \u003C\u003Ef__am\u0024cache0;
- [Address(Offset = "0x17FD848", RVA = "0x1017FD848")]
- public BattleUnit()
- {
- // ISSUE: unable to decompile the method.
- }
- public event Action HealthChanged
- {
- [Address(Offset = "0x17FD8B8", RVA = "0x1017FD8B8")] add
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FD9C8", RVA = "0x1017FD9C8")] remove
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public int Id
- {
- [Address(Offset = "0x17FDAD8", RVA = "0x1017FDAD8")] private set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDAE0", RVA = "0x1017FDAE0")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public BattleObject.Types.Side Side
- {
- [Address(Offset = "0x17FDAE8", RVA = "0x1017FDAE8")] private set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDAF0", RVA = "0x1017FDAF0")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public string Name
- {
- [Address(Offset = "0x17FDAF8", RVA = "0x1017FDAF8")] private set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDB00", RVA = "0x1017FDB00")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- private bool IsMoving
- {
- [Address(Offset = "0x17FDB08", RVA = "0x1017FDB08")] set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDB10", RVA = "0x1017FDB10")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- private string DeathSound
- {
- [Address(Offset = "0x17FDB18", RVA = "0x1017FDB18")] set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDB20", RVA = "0x1017FDB20")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- private Sex UnitSex
- {
- [Address(Offset = "0x17FDB28", RVA = "0x1017FDB28")] set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDB30", RVA = "0x1017FDB30")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public EquipmentTier WeaponTier
- {
- [Address(Offset = "0x17FDB38", RVA = "0x1017FDB38")] private set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDB40", RVA = "0x1017FDB40")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public bool Enemy
- {
- [Address(Offset = "0x17FDB48", RVA = "0x1017FDB48")] private set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDB50", RVA = "0x1017FDB50")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public bool Summon
- {
- [Address(Offset = "0x17FDB58", RVA = "0x1017FDB58")] private set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDB60", RVA = "0x1017FDB60")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public bool IsStatic
- {
- [Address(Offset = "0x17FDB68", RVA = "0x1017FDB68")] private set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDB70", RVA = "0x1017FDB70")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public int Health
- {
- [Address(Offset = "0x17FDB78", RVA = "0x1017FDB78")] private set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDB80", RVA = "0x1017FDB80")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public int MaxHealth
- {
- [Address(Offset = "0x17FDB88", RVA = "0x1017FDB88")] private set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDB90", RVA = "0x1017FDB90")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public bool IsDead
- {
- [Address(Offset = "0x17FDB98", RVA = "0x1017FDB98")] private set
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDBA0", RVA = "0x1017FDBA0")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public bool IsDefender
- {
- [Address(Offset = "0x17FDBA8", RVA = "0x1017FDBA8")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- [Address(Offset = "0x17FDBB8", RVA = "0x1017FDBB8")]
- protected void OnDestroy()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDBC0", RVA = "0x1017FDBC0")]
- protected void Update()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FDE24", RVA = "0x1017FDE24")]
- public void Init(
- int id,
- Sh.ServerInteraction.BattleUnit unit,
- IList<BattleObject.Types.ObjectAbility> abilities,
- BattleObject.Types.Side side,
- bool enemy,
- bool summon,
- bool isStatic,
- bool withWeapon,
- BattleUiEffectsPool pool,
- ReadOnlyCollection<BattleModifier> initialStateModifiersList)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FE978", RVA = "0x1017FE978")]
- public Sh.ServerInteraction.BattleUnit GetData()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FE980", RVA = "0x1017FE980")]
- public BattleUnitAbility GetAbility(int id)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FEC48", RVA = "0x1017FEC48")]
- public void PlayColorEffect(
- Color startColor,
- Color targetColor,
- float duration,
- bool pingPong,
- bool primary)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FED10", RVA = "0x1017FED10")]
- public void PlayWinAnimation()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FEE14", RVA = "0x1017FEE14")]
- public void MoveBegin(
- Vector3 pos,
- Vector3 dir,
- float speed,
- bool teleport,
- Action onVisualizerDone)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF15C", RVA = "0x1017FF15C")]
- public void MoveDone(Vector3 pos, bool teleport)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF2F8", RVA = "0x1017FF2F8")]
- public void ShowText(string text, string themeId)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF3E0", RVA = "0x1017FF3E0")]
- public void ShowArtifactEffect(string iconId, Rarity rarity)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF4B8", RVA = "0x1017FF4B8")]
- public void ChangeHealth(int delta)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF51C", RVA = "0x1017FF51C")]
- public void SetMaxHealth(int maxHealth)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FE864", RVA = "0x1017FE864")]
- private void UpdateHealthProgressBar()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF524", RVA = "0x1017FF524")]
- public void ClearFlyingTexts()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF620", RVA = "0x1017FF620")]
- public void Die()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF860", RVA = "0x1017FF860")]
- public void Revive()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF0B0", RVA = "0x1017FF0B0")]
- private void SetShadow(bool active)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF86C", RVA = "0x1017FF86C")]
- private void OnAnimationDone(AnimationEventType type)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF750", RVA = "0x1017FF750")]
- private void PlaySound()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FF92C", RVA = "0x1017FF92C")]
- public void UpdateLogic(float dt)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FFA1C", RVA = "0x1017FFA1C")]
- public Vector3 GetPhysicalPosition()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FFA50", RVA = "0x1017FFA50")]
- public void AddEffect(IVisualEffect effect, bool attachToTransform)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FFBEC", RVA = "0x1017FFBEC")]
- public EffectsByIdCollection GetEffectsCollection()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FFBF4", RVA = "0x1017FFBF4")]
- public ProjectileEmitter CreateProjectileEmitter(Ability ability)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FFB44", RVA = "0x1017FFB44")]
- public IProjectileTarget AsProjectileTarget(
- TargetBoneSettings? targetBoneSettings = null)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x17FFD78", RVA = "0x1017FFD78")]
- public void VisualizeAbility(
- BattleUnitAbility ability,
- IVisualizerTarget target,
- SpawnVisualizer subVisualizers)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x1800294", RVA = "0x101800294")]
- private string GetSound(BattleUnitAbility ability)
- {
- // ISSUE: unable to decompile the method.
- }
- public bool ShowWeapon
- {
- [Address(Offset = "0x18003C4", RVA = "0x1018003C4")] get
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x18003CC", RVA = "0x1018003CC")] set
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public SkeletonAnimationComponent SkeletonAnimation
- {
- [Address(Offset = "0x180043C", RVA = "0x10180043C")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- public UnitVisualController VisualController
- {
- [Address(Offset = "0x1800444", RVA = "0x101800444")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- [Address(Offset = "0x1800430", RVA = "0x101800430")]
- public SkeletonVisualState CreateVisualState(bool witWeapon)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x180044C", RVA = "0x10180044C")]
- public void Hide()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x1800598", RVA = "0x101800598")]
- private IEnumerator HideUnitView(float delay)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x1800634", RVA = "0x101800634")]
- public void SetInvertedHealthBarColor(bool inverted)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x1800704", RVA = "0x101800704")]
- public void AddAbility(BattleUnitAbility ability, int abilityId)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x180077C", RVA = "0x10180077C")]
- public void RemoveAbility(int abilityId)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x18007EC", RVA = "0x1018007EC")]
- public SkeletonAnimationComponent GetSkeletonAnimationComponent()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x18007F4", RVA = "0x1018007F4")]
- public void Pause()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x1800860", RVA = "0x101800860")]
- public void Unpause()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x18008CC", RVA = "0x1018008CC")]
- private static bool \u003CInit\u003Em__0(BattleModifier m)
- {
- // ISSUE: unable to decompile the method.
- }
- private sealed class \u003CInit\u003Ec__AnonStorey1
- {
- [FieldOffset(Offset = "0x10")]
- internal BattleObject.Types.ObjectAbility ability;
- [Address(Offset = "0x17FE85C", RVA = "0x1017FE85C")]
- public \u003CInit\u003Ec__AnonStorey1()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x1800A94", RVA = "0x101800A94")]
- internal bool \u003C\u003Em__0(UnitEquipmentSlot s)
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x1800B68", RVA = "0x101800B68")]
- internal bool \u003C\u003Em__1(ParameterEntry p)
- {
- // ISSUE: unable to decompile the method.
- }
- }
- private sealed class \u003CHideUnitView\u003Ec__Iterator0 : IEnumerator, IDisposable, IEnumerator<object>
- {
- [FieldOffset(Offset = "0x10")]
- internal float delay;
- [FieldOffset(Offset = "0x18")]
- internal BattleUnit \u0024this;
- [FieldOffset(Offset = "0x20")]
- internal object \u0024current;
- [FieldOffset(Offset = "0x28")]
- internal bool \u0024disposing;
- [FieldOffset(Offset = "0x2C")]
- internal int \u0024PC;
- [Address(Offset = "0x180062C", RVA = "0x10180062C")]
- public \u003CHideUnitView\u003Ec__Iterator0()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x1800904", RVA = "0x101800904")]
- public bool MoveNext()
- {
- // ISSUE: unable to decompile the method.
- }
- private object System\u002ECollections\u002EGeneric\u002EIEnumerator\u003Cobject\u003E\u002ECurrent
- {
- [Address(Offset = "0x1800A08", RVA = "0x101800A08")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- private object System\u002ECollections\u002EIEnumerator\u002ECurrent
- {
- [Address(Offset = "0x1800A10", RVA = "0x101800A10")] get
- {
- // ISSUE: unable to decompile the method.
- }
- }
- [Address(Offset = "0x1800A18", RVA = "0x101800A18")]
- public void Dispose()
- {
- // ISSUE: unable to decompile the method.
- }
- [Address(Offset = "0x1800A2C", RVA = "0x101800A2C")]
- public void Reset()
- {
- // ISSUE: unable to decompile the method.
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment