예제 #1
0
    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());
    }
예제 #2
0
        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());
        }