public TilePlacementHooksModule(TilePlacementHooksModule copyFrom = null) { if (copyFrom == null) { this.check = default(PlacementHook); this.postPlaceEveryone = default(PlacementHook); this.postPlaceMyPlayer = default(PlacementHook); this.placeOverride = default(PlacementHook); return; } this.check = copyFrom.check; this.postPlaceEveryone = copyFrom.postPlaceEveryone; this.postPlaceMyPlayer = copyFrom.postPlaceMyPlayer; this.placeOverride = copyFrom.placeOverride; }
public TilePlacementHooksModule(TilePlacementHooksModule copyFrom = null) { if (copyFrom == null) { check = new PlacementHook(); postPlaceEveryone = new PlacementHook(); postPlaceMyPlayer = new PlacementHook(); placeOverride = new PlacementHook(); } else { check = copyFrom.check; postPlaceEveryone = copyFrom.postPlaceEveryone; postPlaceMyPlayer = copyFrom.postPlaceMyPlayer; placeOverride = copyFrom.placeOverride; } }
static PlacementHook() { PlacementHook.Empty = new PlacementHook(null, 0, 0, false); }