Feast 2.0!
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

40 Zeilen
638 B

  1. <template>
  2. <button class="action-button" @click="execute">
  3. {{ action.name }}
  4. </button>
  5. </template>
  6. <script lang="ts">
  7. import { Component, Prop, Vue, Watch, Emit } from 'vue-property-decorator'
  8. import { Action } from '@/game/combat'
  9. import { Creature } from '@/game/entity'
  10. @Component({})
  11. export default class ActionButton extends Vue {
  12. @Prop()
  13. action!: Action
  14. @Prop()
  15. user!: Creature
  16. @Prop()
  17. target!: Creature
  18. @Emit("execute")
  19. execute () {
  20. this.$emit('executed', this.action.execute(this.user, this.target))
  21. }
  22. }
  23. </script>
  24. <style scoped>
  25. .action-button {
  26. width: 100px;
  27. height: 100px;
  28. }
  29. </style>