예제 #1
0
 public static Offset <EnterGameResp> CreateEnterGameResp(FlatBufferBuilder builder,
                                                          int myidx = 0,
                                                          fenghuomsg.FenghuoGameStatus gamestatus = fenghuomsg.FenghuoGameStatus.WaitingInit,
                                                          VectorOffset enemiesHpOffset            = default(VectorOffset),
                                                          VectorOffset HpsOffset     = default(VectorOffset),
                                                          VectorOffset avatarsOffset = default(VectorOffset))
 {
     builder.StartObject(5);
     EnterGameResp.AddAvatars(builder, avatarsOffset);
     EnterGameResp.AddHps(builder, HpsOffset);
     EnterGameResp.AddEnemiesHp(builder, enemiesHpOffset);
     EnterGameResp.AddMyidx(builder, myidx);
     EnterGameResp.AddGamestatus(builder, gamestatus);
     return(EnterGameResp.EndEnterGameResp(builder));
 }
예제 #2
0
 public static EnterGameResp GetRootAsEnterGameResp(ByteBuffer _bb, EnterGameResp obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }