public SwallowActor(Actor self, Target target, WeaponInfo weapon) { this.target = target; this.weapon = weapon; sandworm = self.Trait<Sandworm>(); positionable = self.Trait<Mobile>(); swallow = self.Trait<AttackSwallow>(); manager = self.Trait<UpgradeManager>(); radarPings = self.World.WorldActor.TraitOrDefault<RadarPings>(); }
public RadarWidget(World world, WorldRenderer worldRenderer) { this.world = world; this.worldRenderer = worldRenderer; radarPings = world.WorldActor.TraitOrDefault<RadarPings>(); isRectangularIsometric = world.Map.Grid.Type == MapGridType.RectangularIsometric; cellWidth = isRectangularIsometric ? 2 : 1; previewWidth = world.Map.MapSize.X; previewHeight = world.Map.MapSize.Y; if (isRectangularIsometric) previewWidth = 2 * previewWidth - 1; }
public RadarWidget(World world, WorldRenderer worldRenderer) { this.world = world; this.worldRenderer = worldRenderer; radarPings = world.WorldActor.TraitOrDefault<RadarPings>(); isDiamond = world.Map.TileShape == TileShape.Diamond; cellWidth = isDiamond ? 2 : 1; previewWidth = world.Map.MapSize.X; previewHeight = world.Map.MapSize.Y; if (isDiamond) previewWidth = 2 * previewWidth - 1; }
public SwallowActor(Actor self, Target target, WeaponInfo weapon) { this.target = target; this.weapon = weapon; sandworm = self.Trait<Sandworm>(); positionable = self.Trait<Mobile>(); swallow = self.Trait<AttackSwallow>(); withSpriteBody = self.Trait<WithSpriteBody>(); radarPings = self.World.WorldActor.TraitOrDefault<RadarPings>(); countdown = swallow.Info.AttackTime; withSpriteBody.DefaultAnimation.ReplaceAnim(sandworm.Info.BurrowedSequence); stance = AttackState.Burrowed; location = target.Actor.Location; }
public SwallowActor(Actor self, Target target, WeaponInfo weapon) { this.target = target; this.weapon = weapon; sandworm = self.Trait<Sandworm>(); positionable = self.Trait<Mobile>(); swallow = self.Trait<AttackSwallow>(); renderUnit = self.Trait<RenderUnit>(); radarPings = self.World.WorldActor.TraitOrDefault<RadarPings>(); countdown = swallow.Info.AttackTime; renderUnit.DefaultAnimation.ReplaceAnim("burrowed"); stance = AttackState.Burrowed; location = target.Actor.Location; }
public BaseAttackNotifier(Actor self, BaseAttackNotifierInfo info) { radarPings = self.World.WorldActor.TraitOrDefault <RadarPings>(); this.info = info; lastAttackTime = -info.NotifyInterval * 25; }
public PlaceBeacon(Actor self, PlaceBeaconInfo info) { radarPings = self.World.WorldActor.TraitOrDefault <RadarPings>(); this.info = info; }
public PlaceBeacon(Actor self, PlaceBeaconInfo info) { radarPings = self.World.WorldActor.TraitOrDefault<RadarPings>(); this.info = info; }
public WorldCommandWidget(World world, WorldRenderer worldRenderer) { this.world = world; this.worldRenderer = worldRenderer; radarPings = world.WorldActor.TraitOrDefault<RadarPings>(); }
public BaseAttackNotifier(Actor self, BaseAttackNotifierInfo info) { radarPings = self.World.WorldActor.TraitOrDefault<RadarPings>(); this.info = info; lastAttackTime = -info.NotifyInterval * 25; }
public BeaconGlobal(ScriptContext context) : base(context) { radarPings = context.World.WorldActor.TraitOrDefault<RadarPings>(); }