lua struct generator advanced