public static Offset <syncnet.GameMessage> CreateGameMessage(FlatBufferBuilder builder, syncnet.GameMessages msg_type = syncnet.GameMessages.NONE, int msgOffset = 0) { builder.StartTable(2); GameMessage.AddMsg(builder, msgOffset); GameMessage.AddMsgType(builder, msg_type); return(GameMessage.EndGameMessage(builder)); }
public static void AddMsgType(FlatBufferBuilder builder, syncnet.GameMessages msgType) { builder.AddByte(0, (byte)msgType, 0); }