예제 #1
0
 public WaterElement(int v, int h, int rt = -1,
                     GameDef.WaterType wt = GameDef.WaterType.NoFlow, int fd = 4) : base(v, h, rt)
 {
     this.water_type         = wt;
     this.flow_stop_distance = fd;
     this.name             = "Water";
     childrenFlowWaterList = new List <FlowWaterElement>();
     this.type             = GameDef.GameObj.Water;
 }
예제 #2
0
 public override void AfterPutDown()
 {
     //水源被重新放置后, 改变水流方向
     // 流动水的生成由AutoAction实现
     this.water_type = GameDef.GlobalData.waterTypeMapByPlayerTowards[gsm.stage.player.towards];
 }