Beispiel #1
0
        public Thing(string name, Wrangler wrangler, Thing parent = null)
        {
            if (wrangler == null) throw new ArgumentNullException(nameof(wrangler));
            if (string.IsNullOrWhiteSpace(name))
                throw new ArgumentException("Value cannot be null or whitespace.", nameof(name));

            _wrangler = wrangler;
            Name = name;
            Parent = parent;
        }
Beispiel #2
0
    public override bool TryHighlightTiles(Tile tile)
    {
        Wrangler wrangler = (Wrangler)GameManager.instance.MovingObject;

        if (wrangler.CanMove())
        {
            taintedTiles.Add(tile);
            tile.GetComponent <Renderer>().material.SetColor("_Color", new Color(128, 0, 128));
            wrangler.NumMovesLeft--;
            return(true);
        }

        return(false);
    }
 public FindCommand(Wrangler wrangler, Table table, IExpression criteria) : base(wrangler, table)
 {
     Criteria = criteria;
 }
 protected QueryCommand(Wrangler wrangler, Table table, bool single = false) : base(wrangler)
 {
     _wrangler = wrangler;
     Table = table;
     Single = single;
 }
Beispiel #5
0
 public static Thing CreateTop(Wrangler wrangler)
 {
     return new Thing(TopName, wrangler);
 }
 public UpdateCommand(Wrangler wrangler, Table table, IExpression criteria, ImmutableDictionary<string, object> data) : base(wrangler)
 {
     Table = table;
     Data = data;
     Criteria = criteria;
 }
 public FindByCommand(Wrangler wrangler, Table table, Column column, object value) : base(wrangler, table)
 {
     Column = column;
     Value = value;
 }
 public InsertCommand(Wrangler wrangler, Table table, ImmutableDictionary<string, object> data) : base(wrangler)
 {
     Table = table;
     Data = data;
 }
 protected CommandBase(Wrangler wrangler)
 {
     _wrangler = wrangler;
 }