Ejemplo n.º 1
0
 public static Offset <GetGameStateRsp> CreateGetGameStateRsp(FlatBufferBuilder builder,
                                                              int stat       = 0,
                                                              long startTime = 0,
                                                              long endTime   = 0,
                                                              int GameClass  = 0,
                                                              StringOffset GameSceneOffset  = default(StringOffset),
                                                              VectorOffset playerStatOffset = default(VectorOffset),
                                                              VectorOffset bossStatOffset   = default(VectorOffset))
 {
     builder.StartObject(7);
     GetGameStateRsp.AddEndTime(builder, endTime);
     GetGameStateRsp.AddStartTime(builder, startTime);
     GetGameStateRsp.AddBossStat(builder, bossStatOffset);
     GetGameStateRsp.AddPlayerStat(builder, playerStatOffset);
     GetGameStateRsp.AddGameScene(builder, GameSceneOffset);
     GetGameStateRsp.AddGameClass(builder, GameClass);
     GetGameStateRsp.AddStat(builder, stat);
     return(GetGameStateRsp.EndGetGameStateRsp(builder));
 }
Ejemplo n.º 2
0
 public static GetGameStateRsp GetRootAsGetGameStateRsp(ByteBuffer _bb, GetGameStateRsp obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }