ActionFunctionRegisterBatch.fromReader constructor
ActionFunctionRegisterBatch.fromReader(
- TeleportObjectReader reader
Implementation
factory ActionFunctionRegisterBatch.fromReader(TeleportObjectReader reader) {
final instance = ActionFunctionRegisterBatch();
TeleportField? field;
while ((field = reader.next()) != null) {
if (field!.isNull) continue;
switch (field.fieldId) {
case fieldIdFunctions: {
final ar = field.asArray();
final list = <ActionFunctionRegister>[];
TeleportArrayElement? el;
while ((el = ar.next()) != null) {
list.add(ActionFunctionRegister.fromReader(el!.asObject()));
}
instance.functions = list;
break;
}
}
}
return instance;
}