Пример #1
0
 public static Offset <QuickChat> CreateQuickChat(FlatBufferBuilder builder,
                                                  QuickChatSelection quickChatSelection = QuickChatSelection.Information_IGotIt,
                                                  int playerIndex = 0,
                                                  bool teamOnly   = false)
 {
     builder.StartObject(3);
     QuickChat.AddPlayerIndex(builder, playerIndex);
     QuickChat.AddTeamOnly(builder, teamOnly);
     QuickChat.AddQuickChatSelection(builder, quickChatSelection);
     return(QuickChat.EndQuickChat(builder));
 }
Пример #2
0
 public static Offset <QuickChat> CreateQuickChat(FlatBufferBuilder builder,
                                                  QuickChatSelection quickChatSelection = QuickChatSelection.Information_IGotIt,
                                                  int playerIndex  = 0,
                                                  bool teamOnly    = false,
                                                  int messageIndex = 0,
                                                  float timeStamp  = 0.0f)
 {
     builder.StartObject(5);
     QuickChat.AddTimeStamp(builder, timeStamp);
     QuickChat.AddMessageIndex(builder, messageIndex);
     QuickChat.AddPlayerIndex(builder, playerIndex);
     QuickChat.AddTeamOnly(builder, teamOnly);
     QuickChat.AddQuickChatSelection(builder, quickChatSelection);
     return(QuickChat.EndQuickChat(builder));
 }