public PvPBattleOptions() { Broadcasts = new PvPBattleBroadcasts(); Locations = new PvPBattleLocations(); Restrictions = new PvPBattleRestrictions(); Rewards = new PvPRewards(); Rules = new PvPBattleRules(); Sounds = new PvPBattleSounds(); SuddenDeath = new PvPBattleSuddenDeath(); Timing = new PvPBattleTiming(); Weather = new PvPBattleWeather(); }
public void CopyTo(PvPBattleRules target) { lock (_CopyStore) { if (_CopyStore == null) { _CopyStore = new PropertyList <PvPBattleRules> { Filter = p => p.Name != "InvokeReset" && p.Name != "InvokeClear" && p.PropertyType == typeof(bool) }; } _CopyStore.Deserialize(this); _CopyStore.Serialize(target); _CopyStore.Clear(); } }
public void CopyTo(PvPBattleRules target) { lock (_CopyStore) { if (_CopyStore == null) { _CopyStore = new PropertyList<PvPBattleRules> { Filter = p => p.Name != "InvokeReset" && p.Name != "InvokeClear" && p.PropertyType == typeof(bool) }; } _CopyStore.Deserialize(this); _CopyStore.Serialize(target); _CopyStore.Clear(); } }
public void CopyFrom(PvPBattleRules source) { source.CopyTo(this); }