public static Offset <CoinUpdate> CreateCoinUpdate(FlatBufferBuilder builder, sisyfox.sisycol.Currency currency = sisyfox.sisycol.Currency.EURO, uint balance = 0, uint requiredBalance = 0) { builder.StartObject(3); CoinUpdate.AddRequiredBalance(builder, requiredBalance); CoinUpdate.AddBalance(builder, balance); CoinUpdate.AddCurrency(builder, currency); return(CoinUpdate.EndCoinUpdate(builder)); }
public static void AddCurrency(FlatBufferBuilder builder, sisyfox.sisycol.Currency currency) { builder.AddSbyte(0, (sbyte)currency, 0); }