//////////////// public static void SendToServer(int beg_tile_x, int beg_tile_y, int end_tile_x, int end_tile_y) { var factory = new MyFactory(beg_tile_x, beg_tile_y, end_tile_x, end_tile_y); TunnelEntitySpawnProtocol protocol = factory.Create(); protocol.SendToServer(false); }
//////////////// protected override void Receive(int from_who) { TrainTunnelTileEntity.AwaitingExitTunnelPosition = new Point16(this.EndTileX, this.EndTileY); TunnelEntitySpawnProtocol.PlaceEntity(this.BegTileX, this.BegTileY); }