예제 #1
0
        partial void DoInit(FencePackData data)
        {
            this.Name            = this.Id;
            this.whichType.Value = this.FullId.GetDeterministicHashCode();
            this.ResetHealth(0);

            this.CanBeSetDown = true;
            this.CanBeGrabbed = true;
            this.Type         = "Crafting";
        }
예제 #2
0
 public CustomFence(FencePackData data, Vector2 tileLocation)
     : this(data)
 {
     this.tileLocation.Value = tileLocation;
     this.boundingBox.Value  = new Rectangle((int)tileLocation.X * 64, (int)tileLocation.Y * 64, 64, 64);
 }