コード例 #1
0
ファイル: GoHereEx.cs プロジェクト: yakoder/NRaas
        public override void OnPreLoad()
        {
            Tunings.Inject <Terrain, Terrain.GoHere.OtherLotDefinition, OtherLotDefinition>(false);
            Tunings.Inject <Terrain, Terrain.GoHere.OtherLotWithCarriedChildDefinition, OtherLotWithCarriedChildDefinition>(false);
            Tunings.Inject <Terrain, Terrain.GoHere.SameLotDefinition, SameLotDefinition>(false);

            sOldOtherLotSingleton = OtherLotSingleton;
            OtherLotSingleton     = new OtherLotDefinition();

            sOldOtherLotWithCarriedChildSingleton = OtherLotWithCarriedChildSingleton;
            OtherLotWithCarriedChildSingleton     = new OtherLotWithCarriedChildDefinition();

            sOldSameLotSingleton = SameLotSingleton;
            SameLotSingleton     = new SameLotDefinition();
        }
コード例 #2
0
ファイル: GoHereEx.cs プロジェクト: Robobeurre/NRaas
        public override void OnPreLoad()
        {
            Tunings.Inject<Terrain, Terrain.GoHere.OtherLotDefinition, OtherLotDefinition>(false);
            Tunings.Inject<Terrain, Terrain.GoHere.OtherLotWithCarriedChildDefinition, OtherLotWithCarriedChildDefinition>(false);
            Tunings.Inject<Terrain, Terrain.GoHere.SameLotDefinition, SameLotDefinition>(false);

            sOldOtherLotSingleton = OtherLotSingleton;
            OtherLotSingleton = new OtherLotDefinition();

            sOldOtherLotWithCarriedChildSingleton = OtherLotWithCarriedChildSingleton;
            OtherLotWithCarriedChildSingleton = new OtherLotWithCarriedChildDefinition();

            sOldSameLotSingleton = SameLotSingleton;
            SameLotSingleton = new SameLotDefinition();
        }