示例#1
0
 public void ObjectRun(S.ObjectRun p)
 {
     if (Players.TryGetValue(p.ObjectID, out PlayerObject player))
     {
         player.ActionFeed.Add(new QueuedAction {
             Action = MirAction.Running, Direction = p.Direction, Location = new Vector2(p.Location.X, p.Location.Y)
         });
     }
 }
示例#2
0
 public void ObjectRun(S.ObjectRun p)
 {
     if (ObjectList.TryGetValue(p.ObjectID, out MapObject ob))
     {
         ob.ActionFeed.Add(new QueuedAction {
             Action = MirAction.Running, Direction = p.Direction, Location = new Vector2(p.Location.X, p.Location.Y)
         });
     }
 }
示例#3
0
        private void ObjectRun(S.ObjectRun p)
        {
            if (p.ObjectID == User.ObjectID)
            {
                return;
            }

            for (int i = MapControl.Objects.Count - 1; i >= 0; i--)
            {
                MapObject ob = MapControl.Objects[i];
                if (ob.ObjectID != p.ObjectID)
                {
                    continue;
                }
                ob.ActionFeed.Add(new QueuedAction {
                    Action = MirAction.Running, Direction = p.Direction, Location = p.Location
                });
                return;
            }
        }
示例#4
0
 public static void ObjectRun(S.ObjectRun p)
 {
     gameManager.ObjectRun(p);
 }