public DotState(Actor a, GpsWatcher watcher, FrozenActorLayer frozenLayer)
 {
     Watcher = watcher;
     if (frozenLayer != null)
     {
         FrozenActor = frozenLayer.FromID(a.ActorID);
     }
 }
Example #2
0
        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>();
        }
Example #3
0
        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>();
            }
        }
Example #4
0
        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>();
            }
        }
Example #5
0
 public DotState(GpsWatcher gps)
 {
     Gps = gps;
 }