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) }); } }
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) }); } }
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; } }
public static void ObjectRun(S.ObjectRun p) { gameManager.ObjectRun(p); }