コード例 #1
0
 public static Offset <PlayModel> CreatePlayModel(FlatBufferBuilder builder,
                                                  int score = 0,
                                                  int coin  = 0,
                                                  int adContinueWatchCount     = 0,
                                                  VectorOffset cellArrayOffset = default(VectorOffset),
                                                  Offset <LastPartsModel> lastPartsDataOffset = default(Offset <LastPartsModel>),
                                                  VectorOffset itemUseCountArrayOffset        = default(VectorOffset))
 {
     builder.StartObject(6);
     PlayModel.AddItemUseCountArray(builder, itemUseCountArrayOffset);
     PlayModel.AddLastPartsData(builder, lastPartsDataOffset);
     PlayModel.AddCellArray(builder, cellArrayOffset);
     PlayModel.AddAdContinueWatchCount(builder, adContinueWatchCount);
     PlayModel.AddCoin(builder, coin);
     PlayModel.AddScore(builder, score);
     return(PlayModel.EndPlayModel(builder));
 }
コード例 #2
0
 public static PlayModel GetRootAsPlayModel(ByteBuffer _bb, PlayModel obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }