public DotState(Actor a, GpsWatcher watcher, FrozenActorLayer frozenLayer) { Watcher = watcher; if (frozenLayer != null) { FrozenActor = frozenLayer.FromID(a.ActorID); } }
public GpsDot(Actor self, GpsDotInfo info) { this.self = self; this.info = info; anim = new Animation("gpsdot"); anim.PlayRepeating(info.String); self.World.AddFrameEndTask(w => w.Add(this)); if (self.World.LocalPlayer != null) watcher = self.World.LocalPlayer.PlayerActor.Trait<GpsWatcher>(); }
public GpsDot(ActorInitializer init, string s) { anim = new Animation("gpsdot"); anim.PlayRepeating(s); self = init.self; rs = self.Trait <RenderSimple>(); self.World.AddFrameEndTask(w => w.Add(this)); if (self.World.LocalPlayer != null) { watcher = self.World.LocalPlayer.PlayerActor.Trait <GpsWatcher>(); } }
public GpsDot(Actor self, GpsDotInfo info) { this.self = self; this.info = info; anim = new Animation("gpsdot"); anim.PlayRepeating(info.String); self.World.AddFrameEndTask(w => w.Add(this)); if (self.World.LocalPlayer != null) { watcher = self.World.LocalPlayer.PlayerActor.Trait <GpsWatcher>(); } }
public DotState(GpsWatcher gps) { Gps = gps; }