public void WriteToBinary(BinaryTable table) { LevelMonsterRecord record = new LevelMonsterRecord(); record.group = DataRecordUtility.SetValue(table, group, 0); record.scene = DataRecordUtility.SetValue(table, scene, 0); record.camp = DataRecordUtility.SetValue(table, camp, 0); record.actorID = DataRecordUtility.SetValue(table, actorID, 0); record.x = DataRecordUtility.SetValue(table, x, 0); record.y = DataRecordUtility.SetValue(table, y, 0); record.dir = DataRecordUtility.SetValue(table, dir, 0); record.level = DataRecordUtility.SetValue(table, level, 0); record.passive = DataRecordUtility.SetValue(table, passive, false); record.aiLogic = DataRecordUtility.SetValue(table, aiLogic, ""); record.aiParams = DataRecordUtility.SetValue(table, aiParams, null); byte[] bytes = GetRecordBytes(record); table.Records.Add(bytes); }
public void WriteToBinary(BinaryTable table) { SkillRecord record = new SkillRecord(); record.id = DataRecordUtility.SetValue(table, id, 0); record.desc = DataRecordUtility.SetValue(table, desc, ""); record.type = DataRecordUtility.SetValue(table, type, 0); record.icon = DataRecordUtility.SetValue(table, icon, 0); record.distance = DataRecordUtility.SetValue(table, distance, 0); record.cooldown = DataRecordUtility.SetValue(table, cooldown, 0); record.BaseCooldown = DataRecordUtility.SetValue(table, BaseCooldown, 0); record.duration = DataRecordUtility.SetValue(table, duration, 0); record.interval = DataRecordUtility.SetValue(table, interval, 0); record.damage = DataRecordUtility.SetValue(table, damage, 0); record.mpRecover = DataRecordUtility.SetValue(table, mpRecover, 0); record.hpRecover = DataRecordUtility.SetValue(table, hpRecover, 0); record.addAttack = DataRecordUtility.SetValue(table, addAttack, 0); record.addShield = DataRecordUtility.SetValue(table, addShield, 0); record.addSpeed = DataRecordUtility.SetValue(table, addSpeed, 0); record.canmove = DataRecordUtility.SetValue(table, canmove, 0); record.leadAnim = DataRecordUtility.SetValue(table, leadAnim, ""); record.leadAnimTime = DataRecordUtility.SetValue(table, leadAnimTime, 0); record.leadEffect = DataRecordUtility.SetValue(table, leadEffect, ""); record.leadEffectBone = DataRecordUtility.SetValue(table, leadEffectBone, ""); record.leadEffectStartTime = DataRecordUtility.SetValue(table, leadEffectStartTime, 0); record.leadEffectDeleteTime = DataRecordUtility.SetValue(table, leadEffectDeleteTime, 0); record.castAnim = DataRecordUtility.SetValue(table, castAnim, ""); record.castAnimTime = DataRecordUtility.SetValue(table, castAnimTime, 0); record.selfEffect = DataRecordUtility.SetValue(table, selfEffect, ""); record.selfEffectBone = DataRecordUtility.SetValue(table, selfEffectBone, ""); record.selfEffectStartTime = DataRecordUtility.SetValue(table, selfEffectStartTime, 0); record.selfEffectDeleteTime = DataRecordUtility.SetValue(table, selfEffectDeleteTime, 0); record.targetEffect = DataRecordUtility.SetValue(table, targetEffect, ""); record.targetEffectBone = DataRecordUtility.SetValue(table, targetEffectBone, ""); record.targetEffectStartTime = DataRecordUtility.SetValue(table, targetEffectStartTime, 0); record.targetEffectDeleteTime = DataRecordUtility.SetValue(table, targetEffectDeleteTime, 0); record.emitEffect = DataRecordUtility.SetValue(table, emitEffect, ""); record.emitEffectBone = DataRecordUtility.SetValue(table, emitEffectBone, ""); record.emitEffectStartTime = DataRecordUtility.SetValue(table, emitEffectStartTime, 0); record.emitSpeed = DataRecordUtility.SetValue(table, emitSpeed, 0); record.hitAnim = DataRecordUtility.SetValue(table, hitAnim, ""); record.hitAnimTime = DataRecordUtility.SetValue(table, hitAnimTime, 0); record.hitEffect = DataRecordUtility.SetValue(table, hitEffect, ""); record.hitEffectBone = DataRecordUtility.SetValue(table, hitEffectBone, ""); record.hitEffectStartTime = DataRecordUtility.SetValue(table, hitEffectStartTime, 0); record.hitEffectDeleteTime = DataRecordUtility.SetValue(table, hitEffectDeleteTime, 0); record.impactToSelf = DataRecordUtility.SetValue(table, impactToSelf, 0); record.impactToTarget = DataRecordUtility.SetValue(table, impactToTarget, 0); record.interruptPriority = DataRecordUtility.SetValue(table, interruptPriority, 0); record.isInterrupt = DataRecordUtility.SetValue(table, isInterrupt, false); record.targetType = DataRecordUtility.SetValue(table, targetType, 0); record.aoeType = DataRecordUtility.SetValue(table, aoeType, 0); record.aoeSize = DataRecordUtility.SetValue(table, aoeSize, 0); record.aoeAngleOrLength = DataRecordUtility.SetValue(table, aoeAngleOrLength, 0); record.maxAoeTargetCount = DataRecordUtility.SetValue(table, maxAoeTargetCount, 0); record.dslSkillId = DataRecordUtility.SetValue(table, dslSkillId, 0); record.dslFile = DataRecordUtility.SetValue(table, dslFile, ""); record.sound = DataRecordUtility.SetValue(table, sound, ""); record.soundDelay = DataRecordUtility.SetValue(table, soundDelay, 0); record.skilltimescale = DataRecordUtility.SetValue(table, skilltimescale, 0); record.skilltimescalestarttime = DataRecordUtility.SetValue(table, skilltimescalestarttime, 0); record.skilltimescaleendtime = DataRecordUtility.SetValue(table, skilltimescaleendtime, 0); byte[] bytes = GetRecordBytes(record); table.Records.Add(bytes); }