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