Exemple #1
0
 public static Offset <ScoreboardEntry> CreateScoreboardEntry(FlatBufferBuilder builder,
                                                              StringOffset playerNameOffset = default(StringOffset),
                                                              int score = 0)
 {
     builder.StartObject(2);
     ScoreboardEntry.AddScore(builder, score);
     ScoreboardEntry.AddPlayerName(builder, playerNameOffset);
     return(ScoreboardEntry.EndScoreboardEntry(builder));
 }
 public ScoreboardEntry GetEntries(ScoreboardEntry obj, int j)
 {
     int o = __offset(4); return(o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null);
 }
Exemple #3
0
 public static ScoreboardEntry GetRootAsScoreboardEntry(ByteBuffer _bb, ScoreboardEntry obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }