Esempio n. 1
0
 public static Offset <PayPerPlayStatistic> CreatePayPerPlayStatistic(FlatBufferBuilder builder,
                                                                      ulong timestamp        = 0,
                                                                      uint generated_credits = 0,
                                                                      uint accepted_money    = 0,
                                                                      uint accepted_tokens   = 0,
                                                                      uint credits_worth     = 0)
 {
     builder.StartObject(5);
     PayPerPlayStatistic.AddTimestamp(builder, timestamp);
     PayPerPlayStatistic.AddCreditsWorth(builder, credits_worth);
     PayPerPlayStatistic.AddAcceptedTokens(builder, accepted_tokens);
     PayPerPlayStatistic.AddAcceptedMoney(builder, accepted_money);
     PayPerPlayStatistic.AddGeneratedCredits(builder, generated_credits);
     return(PayPerPlayStatistic.EndPayPerPlayStatistic(builder));
 }
Esempio n. 2
0
 public static PayPerPlayStatistic GetRootAsPayPerPlayStatistic(ByteBuffer _bb, PayPerPlayStatistic obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }