public StatusBlockSave getStatusBlockSave() { StatusBlockSave.Builder builder = StatusBlockSave.CreateBuilder(); foreach (StatusCheckable s in statuses) { StatusSave.Builder sBuilder = StatusSave.CreateBuilder(); sBuilder.SetAlreadyMet(s.isStatusMet()); s.setBuilderWithData(ref sBuilder); builder.AddStats(sBuilder.Build()); } return(builder.Build()); }
public AlternativeSave getAlternativeSave() { AlternativeSave.Builder builder = AlternativeSave.CreateBuilder(); builder.SetUid(uid); foreach (List <StatusCheckable> l in alternativeRequirment) { StatusBlockSave.Builder bBuilder = StatusBlockSave.CreateBuilder(); foreach (StatusCheckable s in l) { StatusSave.Builder sBuilder = StatusSave.CreateBuilder(); sBuilder.SetAlreadyMet(s.isStatusMet()); s.setBuilderWithData(ref sBuilder); bBuilder.AddStats(sBuilder.Build()); } builder.AddStats(bBuilder.Build()); } return(builder.Build()); }