Example #1
0
 public static Offset <GameUnlock> CreateGameUnlock(FlatBufferBuilder builder,
                                                    GameUnlockResult result_type = GameUnlockResult.NONE,
                                                    int resultOffset             = 0)
 {
     builder.StartObject(2);
     GameUnlock.AddResult(builder, resultOffset);
     GameUnlock.AddResultType(builder, result_type);
     return(GameUnlock.EndGameUnlock(builder));
 }
Example #2
0
 public static void AddResultType(FlatBufferBuilder builder, GameUnlockResult resultType)
 {
     builder.AddByte(0, (byte)resultType, 0);
 }