当前位置: 首页>>代码示例>>C#>>正文


C# Common.Replace方法代码示例

本文整理汇总了C#中Common.Replace方法的典型用法代码示例。如果您正苦于以下问题:C# Common.Replace方法的具体用法?C# Common.Replace怎么用?C# Common.Replace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Common的用法示例。


在下文中一共展示了Common.Replace方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddInteraction

 public virtual void AddInteraction(Common.InteractionInjectorList interactions)
 {
     if (!Common.AssemblyCheck.IsInstalled("NRaasShooless"))
     {
         interactions.Replace<IShowerable, Shower.TakeShower.Definition>(Singleton);
     }
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:7,代码来源:TakeShowerEx.cs

示例2: AddInteraction

        public override void AddInteraction(Common.InteractionInjectorList interactions)
        {
            interactions.Replace<ShowerOutdoor, ShowerOutdoor.TakeShower.Definition>(ShowerOutdoor.TakeShower.Singleton);

            // The other interactions are added by ShowerWoohoo itself
            interactions.Add<IShowerable>(ShowerWoohoo.SafeSingleton);
        }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:7,代码来源:TakeShowerOutdoorEx.cs

示例3: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<WeatherStone, WeatherStone.SummonWeather.Definition>(Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:SummonWeatherEx.cs

示例4: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<GameObject, PlantObjectHere.Definition>(Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:PlantObjectHereEx.cs

示例5: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<Sim, MagicWand.CastGoodLuckCharm.Definition>(MagicWand.CastGoodLuckCharm.Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:CastGoodLuckCharmEx.cs

示例6: AddInteraction

        public void AddInteraction(Common.InteractionInjectorList interactions)
        {
            if (!GameUtils.IsInstalled(ProductVersion.EP4)) return;

            interactions.Replace<Sim, OccultImaginaryFriend.OfferToTurnReal.Definition>(Singleton);
        }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:6,代码来源:OfferToMakeRealEx.cs

示例7: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<Phone, Phone.CallThrowParty.Definition>(Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:CallThrowPartyEx.cs

示例8: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<TimePortal, TimePortal.ActivateDeactivate.Definition>(Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:TimePortalActivateDeactivateEx.cs

示例9: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<VanityDresser, VanityDresser.ChangeAppearance.Definition>(Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:VanityChangeAppearanceEx.cs

示例10: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Add<RoutineMachine>(PrivacyInteraction.Singleton);
     interactions.Replace<RoutineMachine, RoutineMachine.TeleportToCommunityLot.Definition>(Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:5,代码来源:TeleportToCommunityLotEx.cs

示例11: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<CityHall, CityHall.ScheduleFireworkShow.ScheduleFireworkDefinition>(Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:ScheduleFireworkShowEx.cs

示例12: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<Computer, Computer.TravelToVacationWorld.Definition>(Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:TravelToVacationWorldEx.cs

示例13: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<Sim, MagicWand.CastFireBlast.Definition>(MagicWand.CastFireBlast.Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:CastFireBlastEx.cs

示例14: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<Plant, Plant.Bloom.Definition>(Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:BloomEx.cs

示例15: AddInteraction

 public void AddInteraction(Common.InteractionInjectorList interactions)
 {
     interactions.Replace<RoutineMachine, RoutineMachine.TeleportToGym.Definition>(Singleton);
 }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:4,代码来源:TeleportToGymEx.cs


注:本文中的Common.Replace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。