Beispiel #1
0
 public function RegisterCallback($Name, $Callback)
 {
     if (is_callable($Callback)) {
         if (is_object(parent::RegisterCallback($Name, $Callback))) {
             return true;
         } else {
             Std::Out("[Warning] [Lua] Can't register {$Name} callback");
         }
     } else {
         Std::Out("[Warning] [Lua] Can't register {$Name} callback. It is not callable");
     }
     return false;
 }