1817 |
} |
} |
1818 |
|
|
1819 |
void DimensionRegion::serialize(Serialization::Archive* archive) { |
void DimensionRegion::serialize(Serialization::Archive* archive) { |
1820 |
|
// in case this class will become backward incompatible one day, |
1821 |
|
// then set a version and minimum version for this class like: |
1822 |
|
//archive->setVersion(*this, 2); |
1823 |
|
//archive->setMinVersion(*this, 1); |
1824 |
|
|
1825 |
SRLZ(VelocityUpperLimit); |
SRLZ(VelocityUpperLimit); |
1826 |
SRLZ(EG1PreAttack); |
SRLZ(EG1PreAttack); |
1827 |
SRLZ(EG1Attack); |
SRLZ(EG1Attack); |
2619 |
|
|
2620 |
// unknown controller type |
// unknown controller type |
2621 |
default: |
default: |
2622 |
throw gig::Exception("Unknown leverage controller type."); |
decodedcontroller.type = leverage_ctrl_t::type_none; |
2623 |
|
decodedcontroller.controller_number = 0; |
2624 |
|
printf("Warning: Unknown leverage controller type (0x%x).\n", EncodedController); |
2625 |
|
break; |
2626 |
} |
} |
2627 |
return decodedcontroller; |
return decodedcontroller; |
2628 |
} |
} |
6476 |
// *************** Exception *************** |
// *************** Exception *************** |
6477 |
// * |
// * |
6478 |
|
|
6479 |
Exception::Exception(String Message) : DLS::Exception(Message) { |
Exception::Exception() : DLS::Exception() { |
6480 |
|
} |
6481 |
|
|
6482 |
|
Exception::Exception(String format, ...) : DLS::Exception() { |
6483 |
|
va_list arg; |
6484 |
|
va_start(arg, format); |
6485 |
|
Message = assemble(format, arg); |
6486 |
|
va_end(arg); |
6487 |
|
} |
6488 |
|
|
6489 |
|
Exception::Exception(String format, va_list arg) : DLS::Exception() { |
6490 |
|
Message = assemble(format, arg); |
6491 |
} |
} |
6492 |
|
|
6493 |
void Exception::PrintMessage() { |
void Exception::PrintMessage() { |