public override void Execute(object args) { var queryResult = args as List <IRenderable>; if (queryResult.Count == 1) { queryResult[0].Actor.OnSelect(); OrderExecuted?.Invoke(queryResult[0].Actor.ActorData.TypeName, queryResult[0]); } }
public override void Execute(object args) { //Get Mouse Click Position var pos = cam.ToScene(new OpenTK.Mathematics.Vector2() { X = ms.X, Y = ms.Y }); //Place a model object[] newArgs = new object[] { pos, args//model name }; OrderExecuted?.Invoke("PlaceBuilding", newArgs); }
public virtual void Execute(object args) { OrderExecuted?.Invoke("Placeholder", null); }
private void NewOrder_OrderExecuted(string arg1, object arg2) { OrderExecuted?.Invoke(arg1, arg2); }