Пример #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 void AddGamestatus(FlatBufferBuilder builder, fenghuomsg.FenghuoGameStatus gamestatus)
 {
     builder.AddSbyte(1, (sbyte)gamestatus, 0);
 }