Reduce uses of IComponentFactory.GetIndex(Type) (#5242)

* Update `RaiseComponentEvent` & component lifestatge methods

* Fix ComponentNetworkGenerator

* a

* A
This commit is contained in:
Leon Friedrich
2024-06-17 03:46:51 +12:00
committed by GitHub
parent 3a479cb5f4
commit 1de8731465
12 changed files with 160 additions and 124 deletions

View File

@@ -275,7 +275,7 @@ namespace Robust.Shared.CompNetworkGenerator
{
eventRaise = @"
var ev = new AfterAutoHandleStateEvent(args.Current);
EntityManager.EventBus.RaiseComponentEvent(component, ref ev);";
EntityManager.EventBus.RaiseComponentEvent(uid, component, ref ev);";
}
return $@"// <auto-generated />