This file contains 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
obs = obslua | |
bit = require('bit') | |
SETTING_ALPHA_THRESHOLD = 'alpha_threshold' | |
SETTING_LINE_COLOR = 'line_color' | |
SETTING_LINE_ALPHA = 'line_alpha' | |
SETTING_LINE_WIDTH = 'line_width' | |
TEXT_ALPHA_THRESHOLD = '透明度閾値' | |
TEXT_LINE_COLOR = '線の色' |
This file contains 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
import EOSSDK | |
var platformHandle: EOS_HPlatform | |
var accountID: EOS_EpicAccountId | |
// 1. Send a query to get friends info | |
func getFriends() { | |
guard let friendsHandle = EOS_Platform_GetFriendsInterface(platformHandle) else { | |
return | |
} |
This file contains 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
import EOSSDK | |
var platformHandle: EOS_HPlatform | |
var accountID: EOS_EpicAccountId | |
// 1. Send a query to get friends info | |
func initAndLogin() { | |
guard let friendsHandle = EOS_Platform_GetFriendsInterface(platformHandle) else { | |
return | |
} |
This file contains 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
import EOSSDK | |
var platformHandle: EOS_HPlatform | |
// 1. Initialize | |
// https://gist.github.com/magicien/a892304c22574d59923dccc95571b990 | |
func init() { | |
// Initialize App, Platform | |
// Login |
This file contains 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
import EOSSDK | |
var platformHandle: EOS_HPlatform | |
// 1. Initialize | |
// https://gist.github.com/magicien/a892304c22574d59923dccc95571b990 | |
func init() { | |
// Initialize App, Platform | |
// Login |
This file contains 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
module EOSSDK { | |
umbrella header "libEOSSDK-umbrella.h" | |
export * | |
module * { export * } | |
} |
This file contains 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
#import <eos_base.h> | |
#import <eos_common.h> | |
#import <eos_achievements.h> | |
#import <eos_achievements_types.h> | |
#import <eos_auth.h> | |
#import <eos_auth_types.h> | |
#import <eos_connect.h> | |
#import <eos_connect_types.h> | |
#import <eos_ecom.h> | |
#import <eos_ecom_types.h> |
This file contains 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
module EOSSDK { | |
umbrella "Headers" | |
export * | |
module * { export * } | |
} |
This file contains 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
import QuartzCore | |
import EOSSDK | |
var platformHandle: EOS_HPlatform? = nil | |
var displayLink: CVDisplayLink? = nil | |
func logFunc(message: Optional<UnsafePointer<_tagEOS_LogMessage>>) { | |
message?.withMemoryRebound(to: EOS_LogMessage.self, capacity: 100) { | |
let str = String(cString: $0.pointee.Message, encoding: .ascii) | |
Swift.print(str ?? "") |
NewerOlder