Exemplo n.º 1
0
        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;
        }
Exemplo n.º 3
0
        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;
        }