예제 #1
0
파일: game.cs 프로젝트: ckissane/IOGame
 public static Offset <NetLeaderboard> CreateNetLeaderboard(FlatBufferBuilder builder,
                                                            StringOffset typeOffset    = default(StringOffset),
                                                            VectorOffset entriesOffset = default(VectorOffset),
                                                            Offset <NetLeaderboardEntry> recordOffset = default(Offset <NetLeaderboardEntry>))
 {
     builder.StartObject(3);
     NetLeaderboard.AddRecord(builder, recordOffset);
     NetLeaderboard.AddEntries(builder, entriesOffset);
     NetLeaderboard.AddType(builder, typeOffset);
     return(NetLeaderboard.EndNetLeaderboard(builder));
 }
예제 #2
0
파일: game.cs 프로젝트: ckissane/IOGame
 public static NetLeaderboard GetRootAsNetLeaderboard(ByteBuffer _bb, NetLeaderboard obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }