Skip to content

Commit

Permalink
update cpp sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady committed Jun 9, 2023
1 parent c227c11 commit 0cab6b6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion altv_sdk/cpp-sdk-version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma once

#define ALT_SDK_VERSION "fd5af70"
#define ALT_SDK_VERSION "8345006"
12 changes: 6 additions & 6 deletions test/rust_resource/src/base_object_funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub(crate) fn test_base_object_funcs() {
}

fn all() {
let orig_marker = altv::Marker::new(altv::MarkerType::Markerarrow, 0, 0);
let orig_marker = altv::Marker::new(altv::MarkerType::MarkerArrow, 0, 0);

let marker_at = |idx: usize| {
let objects = altv::base_object::all();
Expand All @@ -30,14 +30,14 @@ fn all() {
dbg!(m.id().unwrap(), orig_marker.id().unwrap());
assert_eq!(m, orig_marker);

let orig_marker2 = altv::Marker::new(altv::MarkerType::Markerarrow, 0, 0);
let orig_marker2 = altv::Marker::new(altv::MarkerType::MarkerArrow, 0, 0);
dbg!(m.id().unwrap(), orig_marker2.id().unwrap());

assert_ne!(m, orig_marker2);
}

fn get_by_id() {
let orig_marker = altv::Marker::new(altv::MarkerType::Markerarrow, 0, 0);
let orig_marker = altv::Marker::new(altv::MarkerType::MarkerArrow, 0, 0);
let id = dbg!(orig_marker.id()).unwrap();
let obj = altv::base_object::get_by_id(BaseObjectType::Marker, id);
let marker = assert_marker(obj);
Expand Down Expand Up @@ -85,9 +85,9 @@ fn assert_marker(obj: Option<AnyBaseObject>) -> altv::MarkerContainer {
fn all_count() {
assert_eq!(dbg!(altv::base_object::all_count()), 0);

altv::Marker::new(altv::MarkerType::Markerarrow, 0, 0);
altv::Marker::new(altv::MarkerType::Markerarrow, 0, 0);
altv::Marker::new(altv::MarkerType::Markerarrow, 0, 0);
altv::Marker::new(altv::MarkerType::MarkerArrow, 0, 0);
altv::Marker::new(altv::MarkerType::MarkerArrow, 0, 0);
altv::Marker::new(altv::MarkerType::MarkerArrow, 0, 0);

assert_eq!(dbg!(altv::base_object::all_count()), 3);
}
2 changes: 1 addition & 1 deletion test/rust_resource/src/base_object_pool_funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub(crate) fn test_base_object_pool_funcs() {
}

fn get_by_id() {
let marker = altv::Marker::new(altv::MarkerType::Markerlap, 0, 0);
let marker = altv::Marker::new(altv::MarkerType::MarkerArrow, 0, 0);
let id = dbg!(marker.id()).unwrap();

dbg!(altv::Marker::get_by_id(id).unwrap());
Expand Down

0 comments on commit 0cab6b6

Please sign in to comment.