ActionStopSound.fromReader constructor
ActionStopSound.fromReader(
- TeleportObjectReader reader
Implementation
factory ActionStopSound.fromReader(TeleportObjectReader reader) {
final instance = ActionStopSound();
TeleportField? field;
while ((field = reader.next()) != null) {
if (field!.isNull) continue;
switch (field.fieldId) {
case fieldIdId: {
instance.id = field.asString();
break;
}
case fieldIdFadeoutTimeInSec: {
instance.fadeoutTimeInSec = field.asFloat32();
break;
}
}
}
return instance;
}