예제 #1
0
        public static bool TileIsChest(Vector2 position)
        {
            var x = (int) position.X;
            var y = (int) position.Y;

            return TileIsChest(x, y);
        }
예제 #2
0
 public Chest()
 {
     ID = -1;
     WorldID = Main.worldID;
     Owner = "";
     Position = new Vector2(0, 0);
     Locked = false;
     RegionLock = false;
     Refill = false;
     HashedPassword = "";
     RefillItems = new Item[20];
 }
예제 #3
0
 public void SetPosition(int x, int y)
 {
     Position = new Vector2(x, y);
 }
예제 #4
0
 public void SetPosition(Vector2 position)
 {
     Position = position;
 }