From 61ee283113f62c499b2c38a23413f6c5cbe39aa2 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Wed, 10 Apr 2024 14:14:19 +0200 Subject: [PATCH] added Pocket --- src/cc/Pocket.hx | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/cc/Pocket.hx diff --git a/src/cc/Pocket.hx b/src/cc/Pocket.hx new file mode 100644 index 0000000..22c529d --- /dev/null +++ b/src/cc/Pocket.hx @@ -0,0 +1,13 @@ +package cc; + +@:multiReturn +extern class PocketActionResult { + public var successful:Bool; + public var error:String; +} + +@:native("pocket") +extern class Pocket { + public static function equipBack(): PocketActionResult; + public static function unequipBack(): PocketActionResult; +}