There's a consistent typo in the key used for serializing and deserializing the initialDuration field within the AbstractCinematicEvent class. This affects both the write() and read() methods.
The current serialization key is initalDuration (missing the 'i' after 'n').
In the write() method:
oc.write(initialDuration, "initalDuration", 10);
And in the read() method:
initialDuration = ic.readFloat("initalDuration", 10);
This key should be corrected to initialDuration to match the correct spelling of the field and ensure consistency in serialization.
Affected file(s):
AbstractCinematicEvent.java
Impact:
This is primarily a grammatical and consistency fix. Correcting this typo ensures that the serialization keys accurately reflect the field names. However, changing this key will break backward compatibility for any previously saved cinematic events that were serialized with the incorrect "initalDuration" key.
There's a consistent typo in the key used for serializing and deserializing the initialDuration field within the
AbstractCinematicEventclass. This affects both thewrite()andread()methods.The current serialization key is
initalDuration(missing the 'i' after 'n').In the write() method:
oc.write(initialDuration, "initalDuration", 10);And in the read() method:
initialDuration = ic.readFloat("initalDuration", 10);This key should be corrected to initialDuration to match the correct spelling of the field and ensure consistency in serialization.
Affected file(s):
AbstractCinematicEvent.java
Impact:
This is primarily a grammatical and consistency fix. Correcting this typo ensures that the serialization keys accurately reflect the field names. However, changing this key will break backward compatibility for any previously saved cinematic events that were serialized with the incorrect "initalDuration" key.