Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List of the classes exported to LUA
- C++ class game_object {
- function get_target_obj() object; -- Returns the current object that looks at us
- function GetMousePos() vector2; -- Returns a vector2 object with the current mouse position
- function item_on_belt();
- function belt_object_count() number; -- Gets the amount of items currently on the belt
- function get_fuel() number; -- Gets the current amount of fuel in the car
- function get_fuel_consumption() number; -- Gets the amount of fuel the car consumes
- function get_fuel_tank() number; -- Gets the total capacity of the fuel tank
- function set_fuel(number); -- Sets the current amount of fuel in the car
- function set_fuel_consumption(number); -- Sets the current amount of fuel the car consumes
- function set_character_name(string); -- Sets the characters name * Need to determine how it works, seems to use an inbuilt string *
- };
- C++ class CUIWindow {
- function GetMouseX(); -- Gets the X value of the mouse
- function GetMouseY(); -- gets the Y value of the mouse
- };
- C++ class callback {
- const call_key_press_callback = ; -- Adds a callback for when a key is pressed
- const call_key_release_callback = ; -- Adds a callback for when a key is released
- const call_key_hold_callback = ; -- Adds a callback for when a key is held
- const call_mouse_wheel_callback = ; -- Adds a callback for when the mouse wheel is scrolled
- const call_mouse_move_callback = ; -- Adds a callback for when the mouse move
- };
- End of list of the classes exported to LUA
- List of the namespaces exported to LUA
- namespace {
- function log1(string); -- Logs a message to console
- function flush1(); -- Writes the current console buffer to file
- function bit_or();
- function set_extensions_flags();
- function get_extensions_flags();
- namespace level {
- function get_target_dist() number; -- Gets the distance to the object we are looking at
- function set_ph_time_factor(number); -- Sets speed at which physics effects works?
- function get_ph_time_factor() number; -- Gets speed at which physics effects works?
- function set_fov(number); -- Sets the current FOV
- function get_fov() number; -- Gets the current FOV
- function hide_minimap(); -- Hides the minimap
- function show_minimap(); -- Shows the minimap
- function minimap_shown() boolean; -- Returns a boolean value to determine if the minimap is shown or not
- };
- };
- End of list of the namespaces exported to LUA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement