| 1234567891011121314151617181920212223242526272829303132 |
- package event
- import (
- eventBase "f1-game/internal/event/base"
- nameEvent "f1-game/internal/name/event"
- "f1-game/internal/pb"
- )
- type TileOccupy struct {
- eventBase.PairEvent[*pb.I32I32, *pb.I64]
- }
- func NewTileOccupy(playerID, ownerPlayerID int64, configID, level int32) *TileOccupy {
- return &TileOccupy{
- PairEvent: eventBase.NewPairEvent(playerID, nameEvent.Map_PlayerTileOccupy, &pb.I32I32{
- Key: configID,
- Value: level,
- }, &pb.I64{Value: ownerPlayerID}),
- }
- }
- func (p *TileOccupy) ConfigID() int32 {
- return p.Key().Key
- }
- func (p *TileOccupy) Level() int32 {
- return p.Key().Value
- }
- func (p *TileOccupy) OwnerPlayerID() int64 {
- return p.Value().Value
- }
|