private void SendMessage(string message, NotifyLevels level = NotifyLevels.COMMON) { var notification = _ecsWorld.CreateEntityWith <NotificationComponent>(); notification.Level = level; notification.StringToShow = message; }
protected void SendMessage(string message, NotifyLevels level = NotifyLevels.COMMON) { #if !DEBUG if (level == NotifyLevels.DEBUG) { return; } #endif var notification = EcsWorld.CreateEntityWith <ShowNotificationEvent>(); notification.Level = level; notification.StringToShow = message; }
private void SendMessage(string message, int pedEntity, NotifyLevels level = NotifyLevels.COMMON) { #if !DEBUG if (Config.Data.PlayerConfig.PlayerEntity != pedEntity) { return; } #endif var notification = EcsWorld.CreateEntityWith <NotificationComponent>(); notification.Level = level; notification.StringToShow = message; }