// Token: 0x06004E9B RID: 20123 RVA: 0x0017D390 File Offset: 0x0017B590 public static ProBattleProcessing BattleProcessingToPbBattleProcessing(ProcessingBattle battleInfo) { ProBattleProcessing proBattleProcessing = new ProBattleProcessing { Type = (int)battleInfo.Type, TypeId = battleInfo.TypeId, RandomSeed = battleInfo.RandomSeed, ArmyRandomSeed = battleInfo.ArmyRandomSeed }; proBattleProcessing.Params.AddRange(battleInfo.Params); return(proBattleProcessing); }
// Token: 0x06004E9C RID: 20124 RVA: 0x0017D3E8 File Offset: 0x0017B5E8 public static ProcessingBattle PbBattleProcessingToBattleProcessing(ProBattleProcessing pbBattleInfo) { ProcessingBattle processingBattle = new ProcessingBattle { Type = (BattleType)pbBattleInfo.Type, TypeId = pbBattleInfo.TypeId, RandomSeed = pbBattleInfo.RandomSeed, ArmyRandomSeed = pbBattleInfo.ArmyRandomSeed }; processingBattle.Params.AddRange(pbBattleInfo.Params); return(processingBattle); }
public static int BattleProcessingToPbBattleProcessing_s(IntPtr l) { int result; try { ProcessingBattle battleInfo; LuaObject.checkType <ProcessingBattle>(l, 1, out battleInfo); ProBattleProcessing o = ProcessingBattle.BattleProcessingToPbBattleProcessing(battleInfo); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }