Logo
Explore Help
Register Sign In
Cinka/OldThink
1
0
Fork 0
You've already forked OldThink
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
a16cc22dc6603e4e0c01acbd4694eb38d782cfb7
OldThink/Content.Server/Flash/Components/FlashImmunityComponent.cs

16 lines
449 B
C#
Raw Normal View History

Refactors flashes to ECS, sunglasses protect you from being flashed. (#4579) * Refactors flashes to ECS, sunglasses protect you from being flashed. * VV ReadWrite for FlashImmunity Enabled. * Use cached IEntityLookup. * Consistent formatting. * Fix flashbang duration. Flash duration is a mess. * Small area flash code cleanup. * Flashable state is only sent to attached player.
2021-09-09 16:20:41 +02:00
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Flash.Components
{
[RegisterComponent, Friend(typeof(FlashSystem))]
Seal/abstract/virtual everything (#6739)
2022-02-16 00:23:23 -07:00
public sealed class FlashImmunityComponent : Component
Refactors flashes to ECS, sunglasses protect you from being flashed. (#4579) * Refactors flashes to ECS, sunglasses protect you from being flashed. * VV ReadWrite for FlashImmunity Enabled. * Use cached IEntityLookup. * Consistent formatting. * Fix flashbang duration. Flash duration is a mess. * Small area flash code cleanup. * Flashable state is only sent to attached player.
2021-09-09 16:20:41 +02:00
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("enabled")]
public bool Enabled { get; set; } = true;
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 1133ms Template: 20ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API