public void ModifyDeathActorInit(Actor self, TypeDictionary init) { var facings = init.GetOrDefault <TurretFacingsInit>(); if (facings == null) { facings = new TurretFacingsInit(); init.Add(facings); } facings.Value(self.World).Add(Name, TurretFacing); }
public void ModifyDeathActorInit(Actor self, TypeDictionary init) { var facings = init.GetOrDefault <TurretFacingsInit>(); if (facings == null) { facings = new TurretFacingsInit(new Dictionary <string, int>()); init.Add(facings); } if (!facings.Value.ContainsKey(Name)) { facings.Value.Add(Name, TurretFacing); } }