Ejemplo n.º 1
0
func (self LeaveEvent) IsFor(receiver *database.Character) bool {
	return receiver.GetRoomId() == self.Room.GetId() &&
		receiver.GetId() != self.Character.GetId()
}
Ejemplo n.º 2
0
func (self RoomUpdateEvent) IsFor(receiver *database.Character) bool {
	return receiver.GetRoomId() == self.Room.GetId()
}
Ejemplo n.º 3
0
func (self SayEvent) IsFor(receiver *database.Character) bool {
	return receiver.GetRoomId() == self.Character.GetRoomId()
}