mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
29 lines
698 B
Objective-C
29 lines
698 B
Objective-C
//
|
|
// RBHybridModule.h
|
|
// RobloxMobile
|
|
//
|
|
// Created by Ariel Lichtin on 2/5/15.
|
|
// Copyright (c) 2015 ROBLOX. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "RBHybridCommand.h"
|
|
|
|
@interface RBHybridModule : NSObject
|
|
|
|
// Module properties
|
|
@property(strong, nonatomic) NSString* moduleID;
|
|
|
|
// Initialization function
|
|
-(instancetype)initWithModuleID:(NSString*)moduleID;
|
|
|
|
// Register a function to be executed from JS
|
|
-(void)registerFunction:(NSString*)functionName withSelector:(SEL)selector;
|
|
|
|
// Internal function to make the actual call.
|
|
// Override this function in your module if you need special function handling.
|
|
-(void)executeCommand:(RBHybridCommand*)command;
|
|
|
|
|
|
@end
|