Cube  Command.h at [d35fd65699]

File src/Command.h artifact 40b405f271 part of check-in d35fd65699


#import "Identifier.h"

OF_ASSUME_NONNULL_BEGIN

@interface Command : Identifier
@property (readonly, nonatomic) void (*function)();
@property (readonly, nonatomic) int argumentsTypes;

- (instancetype)initWithName:(OFString *)name OF_UNAVAILABLE;
- (instancetype)initWithName:(OFString *)name
                    function:(void (*)())function
              argumentsTypes:(int)argumentsTypes;
- (int)callWithArguments:(char *_Nonnull *_Nonnull)arguments
            numArguments:(size_t)numArguments
                  isDown:(bool)isDown;
@end

OF_ASSUME_NONNULL_END