league_castle_success.go 514 B

1234567891011121314151617181920212223
  1. package event
  2. import (
  3. eventBase "f1-game/internal/event/base"
  4. nameEvent "f1-game/internal/name/event"
  5. "f1-game/internal/pb"
  6. )
  7. type LeagueCastleSuccess struct {
  8. eventBase.DataEvent[*pb.I32]
  9. }
  10. func NewLeagueCastleSuccess(leagueID int64, configID int32) *LeagueCastleSuccess {
  11. return &LeagueCastleSuccess{
  12. DataEvent: eventBase.NewDataEvent(leagueID, string(nameEvent.League_Castle_Success), &pb.I32{
  13. Value: configID,
  14. }),
  15. }
  16. }
  17. func (p *LeagueCastleSuccess) ConfigID() int32 {
  18. return p.Data().Value
  19. }