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"; }
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); }