projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some challenges to the world map
[carveJwlIkooP6JGAAIwe30JlM.git]
/
skaterift.h
diff --git
a/skaterift.h
b/skaterift.h
index aee794e05a5553d1a2d282b050612d1aa4ef0870..85eb8554055f892f4b28d19beaaaf70c37e36ba0 100644
(file)
--- a/
skaterift.h
+++ b/
skaterift.h
@@
-1,36
+1,39
@@
-#ifndef SKATERIFT_H
-#define SKATERIFT_H
-
+#pragma once
#define SKATERIFT_APPID 2103940
#define SKATERIFT_APPID 2103940
+#include "vg/vg_engine.h"
+#include "vg/vg_camera.h"
-#define VG_TIMESTEP_FIXED (1.0/60.0)
-#define VG_3D
-#define VG_GAME
-#define VG_MSG_V1_SUPPORT
-#define VG_LOG_SOURCE_INFO
-#include "vg/vg.h"
-#include "world.h"
-#include "addon.h"
+enum skaterift_rt
+{
+ k_skaterift_rt_workshop_preview,
+ k_skaterift_rt_server_status,
+ k_skaterift_rt_max
+};
-struct{
- enum async_operation{
+struct skaterift_globals
+{
+ enum async_operation
+ {
k_async_op_none,
k_async_op_clientloading,
k_async_op_none,
k_async_op_clientloading,
- k_async_op_world_scan,
- k_async_op_world_load_preview,
- k_async_op_board_scan,
- k_async_op_player_scan,
- k_async_op_board_load,
- k_async_op_write_savedata,
}
op;
f32 time_rate;
}
op;
f32 time_rate;
-}
-static skaterift = { .op = k_async_op_clientloading, .time_rate = 1.0f };
+ vg_camera cam;
+
+ enum skaterift_activity {
+ k_skaterift_default = 0x00,
+ k_skaterift_replay = 0x01,
+ k_skaterift_ent_focus = 0x02,
+ k_skaterift_menu = 0x04,
+ }
+ activity;
+ GLuint rt_textures[k_skaterift_rt_max];
-/* Skaterift api */
-static void skaterift_change_world_start( void );
-static int skaterift_change_world_command( int argc, const char *argv[] );
+ u32 achievements;
+ int demo_mode;
-#endif /* SKATERIFT_H */
+ const char *hub_world;
+}
+extern skaterift;