internal Throw(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; AtkChrId = reader.ReadInt32(); DefChrId = reader.ReadInt32(); Dist = reader.ReadSingle(); DiffAngMin = reader.ReadSingle(); DiffAngMax = reader.ReadSingle(); UpperYRange = reader.ReadSingle(); LowerYRange = reader.ReadSingle(); DiffAngMyToDef = reader.ReadSingle(); ThrowTypeId = reader.ReadInt32(); AtkAnimId = reader.ReadInt32(); DefAnimId = reader.ReadInt32(); EscHp = reader.ReadUInt16(); SelfEscCycleTime = reader.ReadUInt16(); SphereCastRadiusRateTop = reader.ReadUInt16(); SphereCastRadiusRateLow = reader.ReadUInt16(); PadType = (ThrowPadType)reader.ReadByte(); AtkEnableState = (ThrowEnableState)reader.ReadByte(); AtkSorbDmyId = reader.ReadByte(); DefSorbDmyId = reader.ReadByte(); ThrowType = (ThrowType)reader.ReadByte(); SelfEscCycleCnt = reader.ReadByte(); DmyHasChrDirType = (ThrowDmyCharacterDirectionType)reader.ReadByte(); BitFields = reader.ReadBytes(1); Pad1 = reader.ReadBytes(4); }
internal Accessory(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; RefId = reader.ReadInt32(); SfxVariationId = reader.ReadInt32(); Weight = reader.ReadSingle(); BehaviorId = reader.ReadInt32(); BasicPrice = reader.ReadInt32(); SellValue = reader.ReadInt32(); SortId = reader.ReadInt32(); QwcId = reader.ReadInt32(); EquipModelId = reader.ReadUInt16(); IconId = reader.ReadUInt16(); ShopLv = reader.ReadInt16(); TrophySGradeId = reader.ReadInt16(); TrophySeqId = reader.ReadInt16(); EquipModelCategory = (EquipModelCategory)reader.ReadByte(); EquipModelGender = (EquipModelGender)reader.ReadByte(); AccessoryCategory = (AccessoryCategory)reader.ReadByte(); RefCategory = (BehaviorRefType)reader.ReadByte(); SpEffectCategory = (BehaviorCategory)reader.ReadByte(); Pad = reader.ReadBytes(1); VagrantItemLotId = reader.ReadInt32(); VagrantBonusEneDropItemLotId = reader.ReadInt32(); VagrantItemEneDropItemLotId = reader.ReadInt32(); BitFields = reader.ReadBytes(1); Pad1 = reader.ReadBytes(3); }
internal CalculationCorrection(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; StageMaxVal0 = reader.ReadSingle(); StageMaxVal1 = reader.ReadSingle(); StageMaxVal2 = reader.ReadSingle(); StageMaxVal3 = reader.ReadSingle(); StageMaxVal4 = reader.ReadSingle(); StageMaxGrowVal0 = reader.ReadSingle(); StageMaxGrowVal1 = reader.ReadSingle(); StageMaxGrowVal2 = reader.ReadSingle(); StageMaxGrowVal3 = reader.ReadSingle(); StageMaxGrowVal4 = reader.ReadSingle(); AdjPt_maxGrowVal0 = reader.ReadSingle(); AdjPt_maxGrowVal1 = reader.ReadSingle(); AdjPt_maxGrowVal2 = reader.ReadSingle(); AdjPt_maxGrowVal3 = reader.ReadSingle(); AdjPt_maxGrowVal4 = reader.ReadSingle(); Init_inclination_soul = reader.ReadSingle(); Adjustment_value = reader.ReadSingle(); Boundry_inclination_soul = reader.ReadSingle(); Boundry_value = reader.ReadSingle(); Pad = reader.ReadBytes(4); }
internal Skeleton(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; NeckTurnGain = reader.ReadSingle(); OriginalGroundHeightMS = reader.ReadInt16(); MinAnkleHeightMS = reader.ReadInt16(); MaxAnkleHeightMS = reader.ReadInt16(); CosineMaxKneeAngle = reader.ReadInt16(); CosineMinKneeAngle = reader.ReadInt16(); FootPlantedAnkleHeightMS = reader.ReadInt16(); FootRaisedAnkleHeightMS = reader.ReadInt16(); RaycastDistanceUp = reader.ReadInt16(); RaycastDistanceDown = reader.ReadInt16(); FootEndLS_X = reader.ReadInt16(); FootEndLS_Y = reader.ReadInt16(); FootEndLS_Z = reader.ReadInt16(); OnOffGain = reader.ReadInt16(); GroundAscendingGain = reader.ReadInt16(); GroundDescendingGain = reader.ReadInt16(); FootRaisedGain = reader.ReadInt16(); FootPlantedGain = reader.ReadInt16(); FootUnlockGain = reader.ReadInt16(); KneeAxisType = (SkeletonKneeAxisDirection)reader.ReadByte(); UseFootLocking = reader.ReadByte() != 0; FootPlacementOn = reader.ReadByte() != 0; TwistKneeAxisType = (SkeletonKneeAxisDirection)reader.ReadByte(); NeckTurnPriority = reader.ReadSByte(); NeckTurnMaxAngle = reader.ReadByte(); Pad1 = reader.ReadBytes(2); }
private void AddParameter(string name, string type, string value) { switch (type) { case "int": parameters[name] = Convert.ToInt32(value); break; case "string": parameters[name] = value; break; case "float": parameters[name] = Convert.ToSingle(value); break; case "table": parameters[name] = new ParameterTable(); break; case null: Debug.LogError("Invalid type of parameter."); break; } }
internal WeaponReinforcement(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; PhysicsAtkRate = reader.ReadSingle(); MagicAtkRate = reader.ReadSingle(); FireAtkRate = reader.ReadSingle(); ThunderAtkRate = reader.ReadSingle(); StaminaAtkRate = reader.ReadSingle(); SaWeaponAtkRate = reader.ReadSingle(); SaDurabilityRate = reader.ReadSingle(); CorrectStrengthRate = reader.ReadSingle(); CorrectAgilityRate = reader.ReadSingle(); CorrectMagicRate = reader.ReadSingle(); CorrectFaithRate = reader.ReadSingle(); PhysicsGuardCutRate = reader.ReadSingle(); MagicGuardCutRate = reader.ReadSingle(); FireGuardCutRate = reader.ReadSingle(); ThunderGuardCutRate = reader.ReadSingle(); PoisonGuardResistRate = reader.ReadSingle(); DiseaseGuardResistRate = reader.ReadSingle(); BloodGuardResistRate = reader.ReadSingle(); CurseGuardResistRate = reader.ReadSingle(); StaminaGuardDefRate = reader.ReadSingle(); SpEffectId1 = reader.ReadByte(); SpEffectId2 = reader.ReadByte(); SpEffectId3 = reader.ReadByte(); ResidentSpEffectId1 = reader.ReadByte(); ResidentSpEffectId2 = reader.ReadByte(); ResidentSpEffectId3 = reader.ReadByte(); MaterialSetId = reader.ReadByte(); Pad = reader.ReadBytes(9); }
internal EnemyStandardInfo(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; EnemyBehaviorID = (EnemyBehaviorId)reader.ReadInt32(); HP = reader.ReadUInt16(); AttackPower = reader.ReadUInt16(); ChrType = (CharacterTyep)reader.ReadInt32(); HitHeight = reader.ReadSingle(); HitRadius = reader.ReadSingle(); Weight = reader.ReadSingle(); DynamicFriction = reader.ReadSingle(); StaticFriction = reader.ReadSingle(); UpperDefState = reader.ReadInt32(); ActionDefState = reader.ReadInt32(); RotY_per_Second = reader.ReadSingle(); Reserve0 = reader.ReadBytes(20); RotY_per_Second_old = reader.ReadByte(); EnableSideStep = reader.ReadByte(); UseRagdollHit = reader.ReadByte(); Reserve_last = reader.ReadBytes(5); Stamina = reader.ReadUInt16(); StaminaRecover = reader.ReadUInt16(); StaminaConsumption = reader.ReadUInt16(); Deffenct_Phys = reader.ReadUInt16(); Reserve_last2 = reader.ReadBytes(48); }
/// <summary> /// Initializes a new instance of the <see cref="IndexerType"/> class. /// </summary> /// <param name="baseTypeName">The type name of the resolved base type.</param> /// <param name="baseType">The type of the resolved base type.</param> /// <param name="entityTypeName">The type name of the resolved result type.</param> /// <param name="entityType">The type of the resolved result type.</param> /// <param name="indexerKind">Type of indexer.</param> /// <param name="indexParameterList">The list of parameters.</param> /// <param name="parameterEnd">The indexer parameter end type.</param> /// <param name="getRequireList">The list of require assertions for the getter.</param> /// <param name="getEnsureList">The list of ensure assertions for the getter.</param> /// <param name="getExceptionIdentifierList">The list of known exceptions thrown for the getter.</param> /// <param name="setRequireList">The list of require assertions for the setter.</param> /// <param name="setEnsureList">The list of ensure assertions for the setter.</param> /// <param name="setExceptionIdentifierList">The list of known exceptions thrown for the setter.</param> public IndexerType(ITypeName baseTypeName, IClassType baseType, ITypeName entityTypeName, ICompiledType entityType, BaseNode.UtilityType indexerKind, IList <IEntityDeclaration> indexParameterList, BaseNode.ParameterEndStatus parameterEnd, IList <IAssertion> getRequireList, IList <IAssertion> getEnsureList, IList <IIdentifier> getExceptionIdentifierList, IList <IAssertion> setRequireList, IList <IAssertion> setEnsureList, IList <IIdentifier> setExceptionIdentifierList) : this() { BaseType = baseType; EntityType = null; ParameterEnd = parameterEnd; IndexerKind = indexerKind; ResolvedBaseTypeName.Item = baseTypeName; ResolvedBaseType.Item = baseType; ResolvedEntityTypeName.Item = entityTypeName; ResolvedEntityType.Item = entityType; IndexParameterList = indexParameterList; GetRequireList = getRequireList; GetEnsureList = getEnsureList; GetExceptionIdentifierList = getExceptionIdentifierList; SetRequireList = setRequireList; SetEnsureList = setEnsureList; SetExceptionIdentifierList = setExceptionIdentifierList; foreach (IEntityDeclaration Item in indexParameterList) { IName ParameterName = (IName)Item.EntityName; string ValidText = ParameterName.ValidText.Item; IScopeAttributeFeature ParameterFeature = Item.ValidEntity.Item; ParameterTable.Add(new Parameter(ValidText, ParameterFeature)); } ParameterTable.Seal(); }
internal MenuColor(ParameterTable table, int index) : base(table, index) { R = (Byte)255; G = (Byte)255; B = (Byte)255; A = (Byte)255; }
public void ParameterTable_Add_ArgumentChecking() { var pt = new ParameterTable(); Assert.ThrowsException <ArgumentNullException>(() => pt.Add(default(LambdaExpression))); Assert.ThrowsException <ArgumentNullException>(() => pt.Add(default(ParameterInfo))); Assert.ThrowsException <ArgumentNullException>(() => pt.Add(default(ParameterTable))); }
internal LevelOfDetail(ParameterTable table, int index) : base(table, index) { Lv01_BorderDist = (Single)5; Lv01_PlayDist = (Single)1; Lv12_BorderDist = (Single)20; Lv12_PlayDist = (Single)2; }
private void CheckOpcodesMenuItem_Click(object sender, EventArgs e) { // set it reaonly to not change the script ScriptText.ReadOnly = true; ParameterTable.Rows[0].Selected = true; TrackerOutputText.CreateLogMessage(($"Running CheckOpcodes with Thread {Thread.CurrentThread.ManagedThreadId.ToString()} \n"), Utils.Helper.MessageClass.Information); var engine = new SCTrackerExecutionEngine(TrackerOutputText, null, Crypto.Default); engine.SCTrackerLoadScript(ScriptText.Text.HexToBytes()); // loads avm ScriptBuilder sb = ParameterTable.GetScriptBuilder(TrackerOutputText, engine); engine.LoadScript(sb.ToArray()); TrackerOutputText.CreateLogMessage(($"[Contract:0x{engine.GetScriptHash()}] Added parameters as hex = {sb.ToArray().ToHexString()} \n"), Utils.Helper.MessageClass.Information); TrackerOutputText.CreateLogMessage("\tTracking:\n", Utils.Helper.MessageClass.Information); engine.SCTrackerExecute(); // start execution string state = engine.State == VMState.HALT ? "OK" : "FAIL"; string stateMessage = $"[Contract:0x{engine.GetScriptHash()}] Result = {state} \n"; Utils.Helper.MessageClass mClass = Utils.Helper.MessageClass.Information; OpCode currentOpCode = OpCode.NOP; string result = "No result"; if (engine.State == VMState.HALT) { result = engine.ResultStack.Peek().ToParameter().ToString(); mClass = Utils.Helper.MessageClass.Success; } else if (engine.State == VMState.FAULT) { int pos = engine.InvocationStack.Peek().InstructionPointer * 2 - 2; ScriptText.SelectionStart = pos; ScriptText.SelectionLength = 2; ScriptText.SelectionColor = Color.Red; mClass = Utils.Helper.MessageClass.Error; } else { int pos = engine.InvocationStack.Peek().InstructionPointer * 2 - 2; ScriptText.SelectionStart = pos; ScriptText.SelectionLength = 2; ScriptText.SelectionColor = Color.DarkGoldenrod; currentOpCode = (OpCode)Convert.ToByte(ScriptText.Text.Substring(pos, 2), 16); result = currentOpCode.ToString() + " at position " + pos / 2; mClass = Utils.Helper.MessageClass.Warning; } TrackerOutputText.CreateLogMessage(($"[Contract:0x{engine.GetScriptHash()}] Result = {result} \n"), mClass); TrackerOutputText.CreateLogMessage(stateMessage, mClass); TrackerOutputText.CreateLogMessage("CheckOpcodes Finishes \n", Utils.Helper.MessageClass.Information); // put it back to be changed ScriptText.ReadOnly = false; }
public void ParameterTable_Add_Func16() { var pt = new ParameterTable(); pt.Add((int arg13, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10, int arg11, int arg12, int arg14, int arg15, int arg16) => Methods.Func16(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16)); var m = typeof(Methods).GetMethod(nameof(Methods.Func16)); Assert.IsTrue(pt.Contains(m.GetParameters()[12])); }
public void ParameterTable_Add_Action2() { var pt = new ParameterTable(); pt.Add((int arg2, int arg1) => Methods.Action2(arg1, arg2)); var m = typeof(Methods).GetMethod(nameof(Methods.Action2)); Assert.IsTrue(pt.Contains(m.GetParameters()[1])); }
internal MenuColor(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; R = reader.ReadByte(); G = reader.ReadByte(); B = reader.ReadByte(); A = reader.ReadByte(); }
internal LevelOfDetail(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; Lv01_BorderDist = reader.ReadSingle(); Lv01_PlayDist = reader.ReadSingle(); Lv12_BorderDist = reader.ReadSingle(); Lv12_PlayDist = reader.ReadSingle(); }
public void ParameterTable_Add_Action7() { var pt = new ParameterTable(); pt.Add((int arg3, int arg1, int arg2, int arg4, int arg5, int arg6, int arg7) => Methods.Action7(arg1, arg2, arg3, arg4, arg5, arg6, arg7)); var m = typeof(Methods).GetMethod(nameof(Methods.Action7)); Assert.IsTrue(pt.Contains(m.GetParameters()[2])); }
public void ParameterTable_Add_Func4() { var pt = new ParameterTable(); pt.Add((int arg1, int arg2, int arg3, int arg4) => Methods.Func4(arg1, arg2, arg3, arg4)); var m = typeof(Methods).GetMethod(nameof(Methods.Func4)); Assert.IsTrue(pt.Contains(m.GetParameters()[0])); }
internal PointLight(ParameterTable table, int index) : base(table, index) { DwindleBegin = (Single)0.5; DwindleEnd = (Single)2; ColR = (Int16)255; ColG = (Int16)255; ColB = (Int16)255; ColA = (Int16)100; }
public void ParameterTable_Add_Func8() { var pt = new ParameterTable(); pt.Add((int arg7, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg8) => Methods.Func8(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)); var m = typeof(Methods).GetMethod(nameof(Methods.Func8)); Assert.IsTrue(pt.Contains(m.GetParameters()[6])); }
internal HitMaterial(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; AiVolumeRate = reader.ReadSingle(); SpEffectIdOnHit0 = reader.ReadInt32(); SpEffectIdOnHit1 = reader.ReadInt32(); BitFields = reader.ReadBytes(1); Pad0 = reader.ReadBytes(3); }
internal LockCamera(ParameterTable table, int index) : base(table, index) { CamDistTarget = (Single)4; RotRangeMinX = (Single)(-40); LockRotXShiftRatio = (Single)0.6; ChrOrgOffset_Y = (Single)1.42; ChrLockRangeMaxRadius = (Single)15; CamFovY = (Single)43; Pad = new Byte[8]; }
internal LensFlareEx(ParameterTable table, int index) : base(table, index) { LightDegRotX = (Int16)0; LightDegRotY = (Int16)0; ColR = (Int16)255; ColG = (Int16)255; ColB = (Int16)255; ColA = (Int16)100; LightDist = (Single)300; }
internal HitMaterial(ParameterTable table, int index) : base(table, index) { BitFields = new byte[1]; AiVolumeRate = (Single)1; SpEffectIdOnHit0 = (Int32)(-1); SpEffectIdOnHit1 = (Int32)(-1); FootEffectHeightType = (HitMaterialFootEffectHeight)0; FootEffectDirType = (HitMaterialFootEffectDirection)0; FloorHeightType = (HitMaterialFloorHeight)0; Pad0 = new Byte[3]; }
internal QwcJudge(ParameterTable table, int index) : base(table, index) { PcJudgeUnderWB = (Int16)(-200); PcJudgeTopWB = (Int16)200; PcJudgeUnderLR = (Int16)(-200); PcJudgeTopLR = (Int16)200; AreaJudgeUnderWB = (Int16)(-200); AreaJudgeTopWB = (Int16)200; AreaJudgeUnderLR = (Int16)(-200); AreaJudgeTopLR = (Int16)200; }
internal QwcChange(ParameterTable table, int index) : base(table, index) { PcAttrB = (Int16)0; PcAttrW = (Int16)0; PcAttrL = (Int16)0; PcAttrR = (Int16)0; AreaAttrB = (Int16)0; AreaAttrW = (Int16)0; AreaAttrL = (Int16)0; AreaAttrR = (Int16)0; }
internal Talk(ParameterTable table, int index) : base(table, index) { MsgId = (Int32)(-1); VoiceId = (Int32)(-1); MotionId = (Int32)(-1); ReturnPos = (Int32)(-1); ReactionId = (Int32)(-1); EventId = (Int32)(-1); IsMotionLoop = (Byte)0; Pad0 = new Byte[7]; }
internal ToneCorrection(ParameterTable table, int index) : base(table, index) { BrightnessR = (Single)1; BrightnessG = (Single)1; BrightnessB = (Single)1; ContrastR = (Single)1; ContrastG = (Single)1; ContrastB = (Single)1; Saturation = (Single)1; Hue = (Single)0; }
internal PointLight(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; DwindleBegin = reader.ReadSingle(); DwindleEnd = reader.ReadSingle(); ColR = reader.ReadInt16(); ColG = reader.ReadInt16(); ColB = reader.ReadInt16(); ColA = reader.ReadInt16(); }
internal Light(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; DegRotX_0 = reader.ReadInt16(); DegRotY_0 = reader.ReadInt16(); ColR_0 = reader.ReadInt16(); ColG_0 = reader.ReadInt16(); ColB_0 = reader.ReadInt16(); ColA_0 = reader.ReadInt16(); DegRotX_1 = reader.ReadInt16(); DegRotY_1 = reader.ReadInt16(); ColR_1 = reader.ReadInt16(); ColG_1 = reader.ReadInt16(); ColB_1 = reader.ReadInt16(); ColA_1 = reader.ReadInt16(); DegRotX_2 = reader.ReadInt16(); DegRotY_2 = reader.ReadInt16(); ColR_2 = reader.ReadInt16(); ColG_2 = reader.ReadInt16(); ColB_2 = reader.ReadInt16(); ColA_2 = reader.ReadInt16(); ColR_u = reader.ReadInt16(); ColG_u = reader.ReadInt16(); ColB_u = reader.ReadInt16(); ColA_u = reader.ReadInt16(); ColR_d = reader.ReadInt16(); ColG_d = reader.ReadInt16(); ColB_d = reader.ReadInt16(); ColA_d = reader.ReadInt16(); DegRotX_s = reader.ReadInt16(); DegRotY_s = reader.ReadInt16(); ColR_s = reader.ReadInt16(); ColG_s = reader.ReadInt16(); ColB_s = reader.ReadInt16(); ColA_s = reader.ReadInt16(); EnvDif_colR = reader.ReadInt16(); EnvDif_colG = reader.ReadInt16(); EnvDif_colB = reader.ReadInt16(); EnvDif_colA = reader.ReadInt16(); EnvSpc_colR = reader.ReadInt16(); EnvSpc_colG = reader.ReadInt16(); EnvSpc_colB = reader.ReadInt16(); EnvSpc_colA = reader.ReadInt16(); EnvDif = reader.ReadInt16(); EnvSpc_0 = reader.ReadInt16(); EnvSpc_1 = reader.ReadInt16(); EnvSpc_2 = reader.ReadInt16(); EnvSpc_3 = reader.ReadInt16(); Pad = reader.ReadBytes(2); }
internal DepthOfField(ParameterTable table, int index) : base(table, index) { FarDofBegin = (Single)60; FarDofEnd = (Single)360; FarDofMul = (Byte)100; Pad_0 = new Byte[3]; NearDofBegin = (Single)3; NearDofEnd = (Single)0; NearDofMul = (Byte)100; Pad_1 = new Byte[3]; DispersionSq = (Single)5; }
internal ShopLineup(ParameterTable table, int index) : base(table, index) { EquipId = (Int32)0; Value = (Int32)(-1); MtrlId = (Int32)(-1); EventFlag = (Int32)(-1); QwcId = (Int32)(-1); SellQuantity = (Int16)(-1); ShopType = (StoreInventoryType)0; EquipType = (StoreInventoryEquipmentType)0; Pad_0 = new Byte[8]; }
internal LockCamera(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; CamDistTarget = reader.ReadSingle(); RotRangeMinX = reader.ReadSingle(); LockRotXShiftRatio = reader.ReadSingle(); ChrOrgOffset_Y = reader.ReadSingle(); ChrLockRangeMaxRadius = reader.ReadSingle(); CamFovY = reader.ReadSingle(); Pad = reader.ReadBytes(8); }
internal LensFlareEx(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; LightDegRotX = reader.ReadInt16(); LightDegRotY = reader.ReadInt16(); ColR = reader.ReadInt16(); ColG = reader.ReadInt16(); ColB = reader.ReadInt16(); ColA = reader.ReadInt16(); LightDist = reader.ReadSingle(); }
internal QwcChange(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; PcAttrB = reader.ReadInt16(); PcAttrW = reader.ReadInt16(); PcAttrL = reader.ReadInt16(); PcAttrR = reader.ReadInt16(); AreaAttrB = reader.ReadInt16(); AreaAttrW = reader.ReadInt16(); AreaAttrL = reader.ReadInt16(); AreaAttrR = reader.ReadInt16(); }
internal Talk(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; MsgId = reader.ReadInt32(); VoiceId = reader.ReadInt32(); MotionId = reader.ReadInt32(); ReturnPos = reader.ReadInt32(); ReactionId = reader.ReadInt32(); EventId = reader.ReadInt32(); IsMotionLoop = reader.ReadByte(); Pad0 = reader.ReadBytes(7); }
internal ObjectInfo(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; Hp = reader.ReadInt16(); Defense = reader.ReadUInt16(); ExtRefTexId = reader.ReadInt16(); MaterialId = reader.ReadInt16(); AnimBreakIdMax = reader.ReadByte(); BitFields = reader.ReadBytes(2); DefaultLodParamId = reader.ReadSByte(); BreakSfxId = reader.ReadInt32(); }
internal ToneCorrection(ParameterTable table, int index, AssetLoader loader, int next) : base(table, index, loader) { BinaryReader reader = loader.Reader; BrightnessR = reader.ReadSingle(); BrightnessG = reader.ReadSingle(); BrightnessB = reader.ReadSingle(); ContrastR = reader.ReadSingle(); ContrastG = reader.ReadSingle(); ContrastB = reader.ReadSingle(); Saturation = reader.ReadSingle(); Hue = reader.ReadSingle(); }
internal LensFlare(ParameterTable table, int index) : base(table, index) { TexId = (SByte)(-1); IsFlare = (Byte)0; EnableRoll = (Byte)0; EnableScale = (Byte)0; LocateDistRate = (Single)0; TexScale = (Single)1; ColR = (Int16)255; ColG = (Int16)255; ColB = (Int16)255; ColA = (Int16)255; }
public void ParameterTable_Contains_ArgumentChecking() { var pt = new ParameterTable(); Assert.ThrowsException <ArgumentNullException>(() => pt.Contains(default));