鬼泣5正在慢慢打DMD难度,争取一命过关而且评价B以上。尼禄最简单,空中采花手抓怪空连空投,加上三级蓄力枪,大部分场景都没有风险。重型敌人蓄力枪打出硬直后用投技打出伤害即可,最难的是需要弹反的顺移哥和巨兽。但丁摩托空中风格风格打击风格循环可以无限锁死能挑空的敌人,但是起手比较慢;狗棍弹反瞬移哥难度比较低,但是总体来说控场难度比较大,比如有四五个转转在地上,尼禄在空中一个一个抓过来就好,但丁一不小心就会中招,好在可以开罪魔人解决不少麻烦的场景。V在DMD难度下手累很多,打法也很单一,基本上就是保持中距离挑衅,魔力留着复活使魔。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
super.viewDidLoad() | |
lf_actionReload() | |
} | |
override func lf_actionReload() { | |
var array: Array<LTDictStrObj> = [ [ | |
"title": "Title 1", | |
"desc": "Description", | |
], [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ICSearchController: LFTableController { | |
var source_search: LFTableDataSource! | |
//@IBOutlet var search_controller: UISearchDisplayController! | |
//@IBOutlet var search_bar: UISearchBar! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
reload_featured() | |
reload_search() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBAction func action_report() { | |
let composer = SVMailComposer() | |
composer.present(self, subject:SV.s.report_user_title, body:SV.s.report_user_body) | |
} | |
class SVMailComposer: MFMailComposeViewController, MFMailComposeViewControllerDelegate { | |
func present(controller: UIViewController, subject: String, body: String) { | |
if MFMailComposeViewController.canSendMail() { | |
mailComposeDelegate = self | |
setToRecipients(["leo@superarts.org"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// TODO: is something like Loggable.Console / Loggable.File possible in Swift - single namespace inside a target? | |
// A console logger | |
protocol ConsoleLoggable { | |
var clogger: ConsoleLoggerProtocol { get } | |
} | |
extension ConsoleLoggable { | |
var clogger: ConsoleLoggerProtocol { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To maintain state of extension computed property, use static variable | |
// A console logger | |
protocol ConsoleLoggable { | |
var logger: ConsoleLoggerProtocol { get } | |
} | |
extension ConsoleLoggable { | |
var logger: ConsoleLoggerProtocol { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol ProductionFeatureProtocol: TestFeature1, TestFeature2 { | |
} | |
struct DefaultProductionFeature: ProductionFeatureProtocol { | |
} | |
protocol TestFeature1 { | |
func testOnly1() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct TestStruct { | |
static var staticVar = 1 | |
static func staticFunc() { | |
staticVar = 2 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol PureEnumProtocol { | |
func test() | |
} | |
enum PureEnum: PureEnumProtocol { | |
static var v = 1 // Still possible | |
//var v = 1 // Enums must not contain stored properties | |
func test() { | |
//v = 2 // Impossible |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseClass: NSObject { | |
func test() { | |
let aType = type(of: self) | |
if aType == dict["My Base"] { | |
print("this is base") | |
} else if aType == dict["My Inherited"] { | |
print("this is inherited") | |
} | |
print(aType) | |
} |
OlderNewer