예제 #1
0
        protected virtual void AddedToWorld(Actor self)
        {
            if (Info.RemoveSmudgesOnBuild)
            {
                RemoveSmudges();
            }

            self.World.AddToMaps(self, this);
            influence.AddInfluence(self, Info.Tiles(self.Location));
        }
예제 #2
0
파일: Building.cs 프로젝트: cjshmyr/OpenRA
        protected virtual void AddedToWorld(Actor self)
        {
            if (Info.RemoveSmudgesOnBuild)
            {
                RemoveSmudges();
            }

            self.World.ActorMap.AddInfluence(self, this);
            self.World.ActorMap.AddPosition(self, this);

            if (!self.Bounds.Size.IsEmpty)
            {
                self.World.ScreenMap.Add(self);
            }

            influence.AddInfluence(self, Info.Tiles(self.Location));
        }