pub fn opcode(func_name: String, class_name: Option<String>) -> WitcherPacket {
    let packet = WitcherPacket::new()
        .append_utf8_raw(constants::NAMESP_SCRIPT_DEBUGGER)
        .append_utf8_raw(constants::SCRIPT_DEBUGGER_OPCODE_REQUEST)
        .append_utf16(func_name);
    
    if let Some(class) = class_name {
        return packet.append_int8(1).append_utf16(class);
    } else {
        return packet.append_int8(0);
    }
}
/// Get the opcode of a script function
/// * `func_name` - name of the function
/// * `class_name` - name of the class if the function is a member of that class; pass None if it's not a method
Get the opcode of a script function
`func_name` - name of the function
`class_name` - name of the class if the function is a member of that class; pass None if it's not a method
Get the opcode of a script function ` func_name ` - name of the function ` class_name ` - name of the class if the function is a member of that class ; pass None if it ' s not a method
pub fn opcode(func_name: String, class_name: Option<String>) -> WitcherPacket {
    let packet = WitcherPacket::new()
        .append_utf8_raw(constants::NAMESP_SCRIPT_DEBUGGER)
        .append_utf8_raw(constants::SCRIPT_DEBUGGER_OPCODE_REQUEST)
        .append_utf16(func_name);
    if let Some(class) = class_name {
        return packet.append_int8(1).append_utf16(class);
    } else {
        return packet.append_int8(0);
    }
}
pub fn opcode ( func_name : String , class_name : Option < String > ) -> WitcherPacket { let packet = WitcherPacket :: new ( ) . append_utf8_raw ( constants :: NAMESP_SCRIPT_DEBUGGER ) . append_utf8_raw ( constants :: SCRIPT_DEBUGGER_OPCODE_REQUEST ) . append_utf16 ( func_name ) ; if let Some ( class ) = class_name { return packet . append_int8 ( 1 ) . append_utf16 ( class ) ; } else { return packet . append_int8 ( 0 ) ; } }
Get the opcode of a script function
 `func_name` - name of the function
 `class_name` - name of the class if the function is a member of that class; pass None if it's not a method
Get the opcode of a script function ` func_name ` - name of the function ` class_name ` - name of the class if the function is a member of that class ; pass None if it ' s not a method
func_name
String
class_name
Option<String>
func_name
String
class_name
Option<String>