using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using Microsoft.CodeAnalysis; using RoR2; using RoR2.Skills; using RoR2.UI; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: InternalsVisibleTo("BrynzaAPI")] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("BrynzaInterop")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+aec1cee244ac95c4df4ea7a111c8c9a87d72eb44")] [assembly: AssemblyProduct("BrynzaInterop")] [assembly: AssemblyTitle("BrynzaInterop")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace BrynzaAPI.Interop { public static class BrynzaInterop { public static List GetExtraSkills(GenericSkill genericSkill) { return (genericSkill.bapi_extraSkills != null) ? (from i in Enumerable.Range(0, genericSkill.bapi_extraSkills.Count) select (GenericSkill)((genericSkill.bapi_extraSkills[i] is GenericSkill) ? /*isinst with value type is only supported in some contexts*/: null)).ToList() : null; } public static void SetExtraSkills(GenericSkill genericSkill, List list) { genericSkill.bapi_extraSkills = list; } public static void AddExtraSkill(GenericSkill genericSkill, GenericSkill obj) { if (genericSkill.bapi_extraSkills != null) { genericSkill.bapi_extraSkills.Add(obj); return; } genericSkill.bapi_extraSkills = new List(); genericSkill.bapi_extraSkills.Add(obj); } public static void RemoveExtraSkill(GenericSkill genericSkill, GenericSkill obj) { if (genericSkill.bapi_extraSkills != null && genericSkill.bapi_extraSkills.Contains(obj)) { genericSkill.bapi_extraSkills.Remove(obj); } } public static void LinkSkill(GenericSkill genericSkil, object obj) { genericSkil.bapi_linkedSkill = obj; } public static GenericSkill GetLinkedSkill(GenericSkill genericSkil) { return (GenericSkill)((genericSkil.bapi_linkedSkill != null && genericSkil.bapi_linkedSkill is GenericSkill) ? /*isinst with value type is only supported in some contexts*/: null); } public static void AddBonusSkill(SkillLocator skillLocator, GenericSkill genericSkill) { if (skillLocator.bapi_bonusSkills != null) { skillLocator.bapi_bonusSkills.Add(genericSkill); return; } skillLocator.bapi_bonusSkills = new List(); skillLocator.bapi_bonusSkills.Add(genericSkill); } public static void RemoveBonusSkill(SkillLocator skillLocator, GenericSkill genericSkill) { if (skillLocator.bapi_bonusSkills != null && skillLocator.bapi_bonusSkills.Contains(genericSkill)) { skillLocator.bapi_bonusSkills.Remove(genericSkill); } } public static List GetBonusSkills(SkillLocator skillLocator) { return (skillLocator.bapi_bonusSkills != null) ? (from i in Enumerable.Range(0, skillLocator.bapi_bonusSkills.Count) select (GenericSkill)((skillLocator.bapi_bonusSkills[i] is GenericSkill) ? /*isinst with value type is only supported in some contexts*/: null)).ToList() : null; } public static Vector3 GetVelocityOverride(CharacterMotor characterMotor) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) return characterMotor.bapi_velocityOverride; } public static void SetVelocityOverride(CharacterMotor characterMotor, Vector3 value) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Unknown result type (might be due to invalid IL or missing references) characterMotor.bapi_velocityOverride = value; } public static Vector3 GetPositionDelta(CharacterMotor characterMotor) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) return characterMotor.bapi_positionDelta; } public static void SetPositionDelta(CharacterMotor characterMotor, Vector3 value) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Unknown result type (might be due to invalid IL or missing references) characterMotor.bapi_positionDelta = value; } public static float GetMaxAirVelocity(CharacterMotor characterMotor) { return characterMotor.bapi_maxAirVelocity; } public static void SetMaxAirVelocity(CharacterMotor characterMotor, float value) { characterMotor.bapi_maxAirVelocity = value; } public static bool GetKeepVelocityOnMoving(CharacterMotor characterMotor) { return characterMotor.bapi_keepVelocityOnMoving; } public static void SetKeepVelocityOnMoving(CharacterMotor characterMotor, bool value) { characterMotor.bapi_keepVelocityOnMoving = value; } public static bool GetUseMaxAirVelocity(CharacterMotor characterMotor) { return characterMotor.bapi_useMaxAirVelocity; } public static void SetUseMaxAirVelocity(CharacterMotor characterMotor, bool value) { characterMotor.bapi_useMaxAirVelocity = value; } public static float GetConsistentAcceleration(CharacterMotor characterMotor) { return characterMotor.bapi_consistentAcceleration; } public static void SetConsistentAcceleration(CharacterMotor characterMotor, float value) { characterMotor.bapi_consistentAcceleration = value; } public static float GetAirControlFromVelocityAdd(CharacterMotor characterMotor) { return characterMotor.bapi_airControlFromVelocityAdd; } public static void SetAirControlFromVelocityAdd(CharacterMotor characterMotor, float value) { characterMotor.bapi_airControlFromVelocityAdd = value; } public static bool GetFluidMaxDistanceDelta(CharacterMotor characterMotor) { return characterMotor.bapi_fluidMaxDistanceDelta; } public static void SetFluidMaxDistanceDelta(CharacterMotor characterMotor, bool value) { characterMotor.bapi_fluidMaxDistanceDelta = value; } public static bool GetStrafe(CharacterMotor characterMotor) { return characterMotor.bapi_strafe; } public static void SetStrafe(CharacterMotor characterMotor, bool value) { characterMotor.bapi_strafe = value; } public static bool GetBunnyHop(CharacterMotor characterMotor) { return characterMotor.bapi_bunnyHop; } public static void SetBunnyHop(CharacterMotor characterMotor, bool value) { characterMotor.bapi_bunnyHop = value; } public static int GetBaseWallJumpCount(CharacterBody characterBody) { return characterBody.bapi_baseWallJumpCount; } public static void SetBaseWallJumpCount(CharacterBody characterBody, int value) { characterBody.bapi_baseWallJumpCount = value; } public static int GetMaxWallJumpCount(CharacterBody characterBody) { return characterBody.bapi_maxWallJumpCount; } public static void SetMaxWallJumpCount(CharacterBody characterBody, int value) { characterBody.bapi_maxWallJumpCount = value; } public static int GetWallJumpCount(CharacterMotor characterMotor) { return characterMotor.bapi_wallJumpCount; } public static void SetWallJumpCount(CharacterMotor characterMotor, int value) { characterMotor.bapi_wallJumpCount = value; } public static bool CanApplyAmmoPack(SkillDef skillDef) { return skillDef.bapi_CanApplyAmmoPack(); } public static void SetStateToMain(EntityStateMachine entityStateMachine) { entityStateMachine.bapi_SetStateToMain(); } public static List GetIgnoredHealthComponents(BulletAttack bulletAttack) { return bulletAttack.bapi_ignoredHealthComponentList; } public static void SetIgnoredHealthComponents(BulletAttack bulletAttack, List value) { bulletAttack.bapi_ignoredHealthComponentList = value; } public static bool GetIgnoreHitTargets(BulletAttack bulletAttack) { return bulletAttack.bapi_ignoreHitTargets; } public static void SetForceMassIsOne(BulletAttack bulletAttack, bool value) { } public static bool GetForceMassIsOne(BulletAttack bulletAttack) { return false; } public static void SetForceMassIsOne(BlastAttack blastAttack, bool value) { } public static bool GetForceMassIsOne(BlastAttack blastAttack) { return false; } public static void SetForceMassIsOne(ref BlastAttackDamageInfo blastAttackDamageInfo, bool value) { } public static bool GetForceMassIsOne(ref BlastAttackDamageInfo blastAttackDamageInfo) { return false; } public static void SetForceMassIsOne(DamageInfo damageInfo, bool value) { } public static bool GetForceMassIsOne(DamageInfo damageInfo) { return false; } public static void SetForceAlwaysApply(BulletAttack bulletAttack, bool value) { } public static bool GetForceAlwaysApply(BulletAttack bulletAttack) { return false; } public static void SetForceAlwaysApply(BlastAttack blastAttack, bool value) { } public static bool GetForceAlwaysApply(BlastAttack blastAttack) { return false; } public static void SetForceAlwaysApply(ref BlastAttackDamageInfo blastAttackDamageInfo, bool value) { } public static bool GetForceAlwaysApply(ref BlastAttackDamageInfo blastAttackDamageInfo) { return false; } public static void SetForceAlwaysApply(DamageInfo damageInfo, bool value) { } public static bool GetForceAlwaysApply(DamageInfo damageInfo) { return false; } public static void SetForceDisableAirControlUntilCollision(BulletAttack bulletAttack, bool value) { } public static bool GetForceDisableAirControlUntilCollision(BulletAttack bulletAttack) { return false; } public static void SetForceDisableAirControlUntilCollision(BlastAttack blastAttack, bool value) { } public static bool GetForceDisableAirControlUntilCollision(BlastAttack blastAttack) { return false; } public static void SetForceDisableAirControlUntilCollision(ref BlastAttackDamageInfo blastAttackDamageInfo, bool value) { } public static bool GetForceDisableAirControlUntilCollision(ref BlastAttackDamageInfo blastAttackDamageInfo) { return false; } public static void SetForceDisableAirControlUntilCollision(DamageInfo damageInfo, bool value) { } public static bool GetForceDisableAirControlUntilCollision(DamageInfo damageInfo) { return false; } public static void SetBonusForce(BulletAttack bulletAttack, Vector3 value) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Unknown result type (might be due to invalid IL or missing references) bulletAttack.bapi_bonusForce = value; } public static Vector3 GetBonusForce(BulletAttack bulletAttack) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) return bulletAttack.bapi_bonusForce; } public static void SetIgnoreHitTargets(BulletAttack bulletAttack, bool value) { bulletAttack.bapi_ignoreHitTargets = value; } public static string GetSection(Row row) { return row.bapi_section; } public static void SetSection(Row row, string value) { row.bapi_section = value; } public static string GetSection(GenericSkill genericSkill) { return genericSkill.bapi_section; } public static void SetSection(GenericSkill genericSkill, string value) { genericSkill.bapi_section = value; } public static List GetSections(LoadoutPanelController loadoutPanelController) { return loadoutPanelController.bapi_sections; } public static void SetSections(LoadoutPanelController loadoutPanelController, List value) { loadoutPanelController.bapi_sections = value; } public static bool GetDontFadeWhenNearCamera(ref RendererInfo rendererInfo) { return rendererInfo.bapi_dontFadeCloseOn; } public static void SetDontFadeWhenNearCamera(ref RendererInfo rendererInfo, bool value) { rendererInfo.bapi_dontFadeCloseOn = value; } public static void SetNoWeaponIfOwner(BulletAttack bulletAttack, bool value) { bulletAttack.bapi_noWeaponIfOwner = value; } public static bool GetNoWeaponIfOwner(BulletAttack bulletAttack) { return bulletAttack.bapi_noWeaponIfOwner; } public static float GetPitchClipCycleStart(AimAnimator aimAnimator) { return aimAnimator.bapi_pitchClipCycleStart; } public static void SetPitchClipCycleStart(AimAnimator aimAnimator, float value) { aimAnimator.bapi_pitchClipCycleStart = value; } public static float GetYawClipCycleStart(AimAnimator aimAnimator) { return aimAnimator.bapi_yawClipCycleStart; } public static void SetYawClipCycleStart(AimAnimator aimAnimator, float value) { aimAnimator.bapi_yawClipCycleStart = value; } public static FixedTimeStamp GetLastJumpTime(CharacterBody characterBody) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) return characterBody.bapi_lastJumpTime; } public static void SetLastJumpTime(CharacterBody characterBody, FixedTimeStamp value) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Unknown result type (might be due to invalid IL or missing references) characterBody.bapi_lastJumpTime = value; } public static void SetClientBuffs(CharacterBody characterBody, int[] value) { characterBody.bapi_clientBuffs = value; } public static int[] GetClientBuffs(CharacterBody characterBody) { return characterBody.bapi_clientBuffs; } public static void SetScale(EffectData effectData, Vector3? value) { effectData.bapi_scale = value; } public static Vector3? GetScale(EffectData effectData) { return effectData.bapi_scale; } public static void SetEffectInstance(EffectData effectData, EffectComponent effectComponent) { effectData.bapi_effectInstance = effectComponent; } public static EffectComponent GetEffectInstance(EffectData effectData) { return effectData.bapi_effectInstance; } public static CharacterBody GetCharacterBody(Interactor interactor) { return interactor.bapi_characterBody; } public static void SetCharacterBody(Interactor interactor, CharacterBody characterBody) { interactor.bapi_characterBody = characterBody; } public static bool GetAppliedChanges(DccsPool dccsPool) { return dccsPool.bapi_appliedChanges; } public static void SetAppliedChanges(DccsPool dccsPool, bool value) { dccsPool.bapi_appliedChanges = value; } public static CharacterMaster GetCharacterMaster(Inventory inventory) { return inventory.bapi_characterMaster; } public static void SetCharacterMaster(Inventory inventory, CharacterMaster characterMaster) { inventory.bapi_characterMaster = characterMaster; } public static void SetSprint(GenericSkill genericSkill, bool value) { genericSkill.bapi_sprint = value; } public static bool GetSprint(GenericSkill genericSkill) { return genericSkill.bapi_sprint; } public static void SetSprintSkill(SkillLocator skillLocator, GenericSkill value) { skillLocator.bapi_sprintSkill = value; } public static GenericSkill GetSprintSkill(SkillLocator skillLocator) { return skillLocator.bapi_sprintSkill; } public static void SetEndPosition(BlastAttack blastAttack, Vector3? vector3) { blastAttack.bapi_endPosition = vector3; } public static Vector3? GetEndPosition(BlastAttack blastAttack) { return blastAttack.bapi_endPosition; } public static void SetNearestPositionOnLineFromHitPosition(ref HitPoint hitPoint, Vector3? vector3) { hitPoint.bapi_nearestPositionOnLineFromHitPosition = vector3; } public static Vector3? GetNearestPositionOnLineFromHitPosition(HitPoint hitPoint) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) return hitPoint.bapi_nearestPositionOnLineFromHitPosition; } public static void SetPreviousPosition(CharacterBody characterBody, Vector3 vector3) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Unknown result type (might be due to invalid IL or missing references) characterBody.bapi_previousPosition = vector3; } public static Vector3 GetPreviousPosition(CharacterBody characterBody) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) return characterBody.bapi_previousPosition; } public static void SetPositionDelta(CharacterBody characterBody, Vector3 vector3) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Unknown result type (might be due to invalid IL or missing references) characterBody.bapi_positionDelta = vector3; } public static Vector3 GetPositionDelta(CharacterBody characterBody) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) return characterBody.bapi_positionDelta; } public static void SetBulletCount(CharacterBody characterBody, int bulletCount) { characterBody.bapi_bulletCount = bulletCount; } public static int GetBulletCount(CharacterBody characterBody) { return characterBody.bapi_bulletCount; } public static void SetBulletCountGraceDuration(CharacterBody characterBody, float bulletCountGraceDuration) { characterBody.bapi_bulletCountGraceDuration = bulletCountGraceDuration; } public static float GetBulletCountGraceDuration(CharacterBody characterBody) { return characterBody.bapi_bulletCountGraceDuration; } public static void SetBulletCountResetTimer(CharacterBody characterBody, float bulletCountResetTimer) { characterBody.bapi_bulletCountResetTimer = bulletCountResetTimer; } public static float GetBulletCountResetTimer(CharacterBody characterBody) { return characterBody.bapi_bulletCountResetTimer; } public static void SetBulletPatternDef(BulletAttack bulletAttack, object obj) { bulletAttack.bapi_bulletPatternDef = obj; } public static object GetBulletPatternDef(BulletAttack bulletAttack) { return bulletAttack.bapi_bulletPatternDef; } } }