15 | | We can define properties so they're not enumerable, this is already done with some properties in BaseAI, but I changed that to test the full serialization approach (no properties skipped, so it should work perfectly). Basically, even if the serializer skips some properties, they will have to be restored exactly as before on deserialization, which means adding special handling for them. I would rather that special handling be part of the API, rather than each AI separately as it is now (AIs have serialize and deserialize functions that pass "opted-in" data back and forth, called by CmpAIManager) |
| 15 | We can define properties so they're not enumerable, this is already done with some properties in BaseAI, but I changed that to test the full serialization approach (no properties skipped, so it should work perfectly). Basically, even if the serializer skips some properties, they will have to be restored exactly as before on deserialization, which means adding special handling for them. I would rather that special handling be part of the API, rather than hiding some data and leaving each AI to handle it separately, as it is now (AIs have serialize and deserialize functions that pass "opted-in" data back and forth, called by CmpAIManager) |