public override void OnBuildingRelocated(ushort id) { _chirperMessageSender.SendMessage( _grumpyEngine.GetRandomName(), _grumpyEngine.GetRandomMessage(GrumpinessTrigger.BuildingRelocated)); base.OnBuildingRelocated(id); }
public void OnNewMessage(IChirperMessage message) { var shouldSend = _random.Next(0, 100) > (_probabilityOfResponding * 100); if (!shouldSend) { return; } _chirperMessageSender.SendMessage( _grumpyEngine.GetRandomName(message.senderName), _grumpyEngine.GetRandomResponse(message)); }
public void OnLevelLoaded(LoadMode mode) { _chirperMessageSender.SendMessage( _grumpyEngine.GetRandomName(), _grumpyEngine.GetRandomMessage(GrumpinessTrigger.LevelLoaded)); }