Beispiel #1
0
 public void Update(S_USER_LOCATION m)
 {
     var entity = GetOrNull(m.Entity);
     if (entity == null) return;
     entity.Position = m.Start;
     OnEntityUpdated(entity);
 }
        public override void Process()
        {
            this.Connection.player.posX    = x;
            this.Connection.player.posY    = y;
            this.Connection.player.posZ    = z;
            this.Connection.player.heading = heading;

            S_USER_LOCATION sUserLocation = new S_USER_LOCATION(this.Connection.player, x, y, z, tx, ty, tz, heading, type, speed);

            sUserLocation.Send(this.Connection);
        }
Beispiel #3
0
        public void Update(S_USER_LOCATION m)
        {
            var entity = GetOrNull(m.Entity);

            if (entity == null)
            {
                return;
            }
            entity.Position = m.Finish;
            OnEntityUpdated(entity);
        }
Beispiel #4
0
        public void Update(S_USER_LOCATION m)
        {
            var entity = GetOrNull(m.Entity);

            if (entity == null)
            {
                return;
            }
            entity.Position  = m.Start;
            entity.Finish    = m.Finish;
            entity.Speed     = m.Speed;
            entity.StartTime = m.Time.Ticks;
            entity.Heading   = m.Heading;
            entity.EndAngle  = m.Heading;
            entity.EndTime   = 0;
        }