Make Server/Client Ignored Components lists easier to find (#1202)

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
Tyler Young
2020-07-02 09:50:45 -04:00
committed by GitHub
parent bb51fe2cc0
commit 9f1bdb4b0a
4 changed files with 164 additions and 153 deletions

View File

@@ -52,136 +52,7 @@ namespace Content.Client
factory.DoAutoRegistrations();
var registerIgnore = new[]
{
"Anchorable",
"AmmoBox",
"Breakable",
"Pickaxe",
"Interactable",
"Destructible",
"Temperature",
"Explosive",
"OnUseTimerTrigger",
"ToolboxElectricalFill",
"ToolboxEmergencyFill",
"WarpPoint",
"ToolboxGoldFill",
"ToolLockerFill",
"EmitSoundOnUse",
"FootstepModifier",
"HeatResistance",
"Teleportable",
"ItemTeleporter",
"Portal",
"EntityStorage",
"PlaceableSurface",
"Wirecutter",
"Screwdriver",
"Multitool",
"Wrench",
"Crowbar",
"Projectile",
"MeleeWeapon",
"Storeable",
"Dice",
"Construction",
"Door",
"PoweredLight",
"Smes",
"Powercell",
"LightBulb",
"Healing",
"Catwalk",
"RangedMagazine",
"Ammo",
"HitscanWeaponCapacitor",
"PowerCell",
"PowerCellCharger",
"WeaponCapacitorCharger",
"AiController",
"Computer",
"AsteroidRock",
"ResearchServer",
"ResearchPointSource",
"ResearchClient",
"IdCard",
"Access",
"AccessReader",
"IdCardConsole",
"Airlock",
"MedicalScanner",
"WirePlacer",
"Drink",
"Food",
"FoodContainer",
"Stomach",
"Rotatable",
"MagicMirror",
"MedkitFill",
"FloorTile",
"FootstepSound",
"UtilityBeltClothingFill",
"ShuttleController",
"HumanInventoryController",
"UseDelay",
"Pourable",
"Paper",
"Write",
"Bloodstream",
"TransformableContainer",
"Mind",
"StorageFill",
"Mop",
"Bucket",
"Puddle",
"CanSpill",
"SpeedLoader",
"Hitscan",
"BoltActionBarrel",
"PumpBarrel",
"RevolverBarrel",
"ExplosiveProjectile",
"StunnableProjectile",
"RandomPottedPlant",
"CommunicationsConsole",
"BarSign",
"DroppedBodyPart",
"DroppedMechanism",
"BodyManager",
"SolarPanel",
"BodyScanner",
"Stunbaton",
"EmergencyClosetFill",
"Tool",
"TilePrying",
"RandomToolColor",
"ConditionalSpawner",
"PottedPlantHide",
"SecureEntityStorage",
"PresetIdCard",
"SolarControlConsole",
"BatteryBarrel",
"FlashExplosive",
"FlashProjectile",
"Utensil",
"UnarmedCombat",
"TimedSpawner",
"Buckle",
"Strap",
"NodeContainer",
"PowerSupplier",
"PowerConsumer",
"Battery",
"BatteryStorage",
"BatteryDischarger",
"Apc",
"PowerProvider",
"PowerReceiver",
"Wire",
};
foreach (var ignoreName in registerIgnore)
foreach (var ignoreName in IgnoredComponents.List)
{
factory.RegisterIgnore(ignoreName);
}
@@ -254,10 +125,7 @@ namespace Content.Client
/// </summary>
public static void DetachPlayerFromEntity(EntityDetachedEventArgs eventArgs)
{
if (!eventArgs.OldEntity.Deleted)
{
eventArgs.OldEntity.RemoveComponent<CharacterInterface>();
}
eventArgs.OldEntity.RemoveComponent<CharacterInterface>();
}
public override void PostInit()