Esempio n. 1
0
        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]);
            }
        }
Esempio n. 2
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);
        }
Esempio n. 3
0
 public virtual void Execute(object args)
 {
     OrderExecuted?.Invoke("Placeholder", null);
 }
Esempio n. 4
0
 private void NewOrder_OrderExecuted(string arg1, object arg2)
 {
     OrderExecuted?.Invoke(arg1, arg2);
 }