Ejemplo n.º 1
0
 public ChampionCreator(LegacyMapBuilder builder)
 {
     this.builder = builder;
     if (builder != null)
     {
         BonesFactory = (ChampionBonesFactory)builder.GetItemFactory(198);// 198 is identifier of bones => http://dmweb.free.fr/?q=node/886
     }
 }
Ejemplo n.º 2
0
 public override Actuator CreateItem(LegacyMapBuilder context, Tile currentTile, IReadOnlyList<ActuatorItemData> matchedSequence)
 {
     var data = matchedSequence[0];
     var constrain = new GrabableItemConstrain(context.GetItemFactory(data.Data), invertConstraion: false);
     var item = context.WallActuatorCreator.CurrentGrabableItems.Select(k => new LegacyItemCreator(context).CreateItem(k, currentTile)).SingleOrDefault();
     return new ExchangerActuator(context.GetWallPosition(data.TilePosition, context.WallActuatorCreator.CurrentTile), item, constrain, data.IsOnceOnly)
     {
         DecorationActivated = context.WallTextures[data.Decoration - 1],
         DecorationDeactived = context.WallTextures[matchedSequence[1].Decoration - 1]
     };
 }
Ejemplo n.º 3
0
        public override Actuator CreateItem(LegacyMapBuilder context, Tile currentTile, IReadOnlyList <ActuatorItemData> matchedSequence)
        {
            var data      = matchedSequence[0];
            var constrain = new GrabableItemConstrain(context.GetItemFactory(data.Data), invertConstraion: false);
            var item      = context.WallActuatorCreator.CurrentGrabableItems.Select(k => new LegacyItemCreator(context).CreateItem(k, currentTile)).SingleOrDefault();

            return(new ExchangerActuator(context.GetWallPosition(data.TilePosition, context.WallActuatorCreator.CurrentTile), item, constrain, onceOnly: true)
            {
                DecorationActivated = context.WallTextures[data.Decoration - 1],
                DecorationDeactived = context.WallTextures[data.Decoration - 1],
            });
        }