//=====================================================================================================================// //=================================================== Public Methods ==================================================// //=====================================================================================================================// #region Public Methods public static GameEventReference Clone(GameEventReference original) { if (original == null) { return(null); } var newWrapper = new GameEventReference { eventID = original.eventID, gameEvent = original.gameEvent, type = original.type }; return(newWrapper); }
//=====================================================================================================================// //=================================================== Public Methods ==================================================// //=====================================================================================================================// #region Public Methods public static GameEventHandler Clone(GameEventHandler original) { if (original == null) { return(null); } var newHandler = new GameEventHandler { Event = GameEventReference.Clone(original.Event), isMuted = original.isMuted, hasBeenInitialized = false, _targets = GameEventTargetSet.Clone(original._targets) }; return(newHandler); }