Skip to content

Commit

Permalink
Update generated code to distribute
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Feb 14, 2024
1 parent aea504d commit 4e25890
Show file tree
Hide file tree
Showing 12 changed files with 488 additions and 5 deletions.
19 changes: 19 additions & 0 deletions generated/clib/sk_clib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2145,6 +2145,11 @@ void __sklib__bitmap_set_cell_details__bitmap__int__int__int__int__int(__sklib_b
int __skparam__count = __sklib__to_int(count);
bitmap_set_cell_details(__skparam__bmp, __skparam__width, __skparam__height, __skparam__columns, __skparam__rows, __skparam__count);
}
int __sklib__bitmap_valid__bitmap(__sklib_bitmap bmp) {
bitmap __skparam__bmp = __sklib__to_bitmap(bmp);
bool __skreturn = bitmap_valid(__skparam__bmp);
return __sklib__to_int(__skreturn);
}
int __sklib__bitmap_width__bitmap(__sklib_bitmap bmp) {
bitmap __skparam__bmp = __sklib__to_bitmap(bmp);
int __skreturn = bitmap_width(__skparam__bmp);
Expand Down Expand Up @@ -2993,6 +2998,11 @@ int __sklib__music_playing() {
bool __skreturn = music_playing();
return __sklib__to_int(__skreturn);
}
int __sklib__music_valid__music(__sklib_music m) {
music __skparam__m = __sklib__to_music(m);
bool __skreturn = music_valid(__skparam__m);
return __sklib__to_int(__skreturn);
}
float __sklib__music_volume() {
float __skreturn = music_volume();
return __sklib__to_float(__skreturn);
Expand Down Expand Up @@ -4245,6 +4255,11 @@ int __sklib__sound_effect_playing__sound_effect(__sklib_sound_effect effect) {
bool __skreturn = sound_effect_playing(__skparam__effect);
return __sklib__to_int(__skreturn);
}
int __sklib__sound_effect_valid__sound_effect(__sklib_sound_effect effect) {
sound_effect __skparam__effect = __sklib__to_sound_effect(effect);
bool __skreturn = sound_effect_valid(__skparam__effect);
return __sklib__to_int(__skreturn);
}
void __sklib__stop_sound_effect__string_ref(const __sklib_string name) {
string __skparam__name = __sklib__to_string(name);
stop_sound_effect(__skparam__name);
Expand Down Expand Up @@ -4973,6 +4988,10 @@ __sklib_string __sklib__read_line() {
string __skreturn = read_line();
return __sklib__to_sklib_string(__skreturn);
}
int __sklib__terminal_has_input() {
bool __skreturn = terminal_has_input();
return __sklib__to_int(__skreturn);
}
void __sklib__write__char(char data) {
char __skparam__data = __sklib__to_char(data);
write(__skparam__data);
Expand Down
4 changes: 4 additions & 0 deletions generated/clib/sk_clib.h
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ __sklib_string __sklib__bitmap_name__bitmap(__sklib_bitmap bmp);
__sklib_bitmap __sklib__bitmap_named__string(__sklib_string name);
__sklib_rectangle __sklib__bitmap_rectangle_of_cell__bitmap__int(__sklib_bitmap src, int cell);
void __sklib__bitmap_set_cell_details__bitmap__int__int__int__int__int(__sklib_bitmap bmp, int width, int height, int columns, int rows, int count);
int __sklib__bitmap_valid__bitmap(__sklib_bitmap bmp);
int __sklib__bitmap_width__bitmap(__sklib_bitmap bmp);
int __sklib__bitmap_width__string(__sklib_string name);
void __sklib__clear_bitmap__bitmap__color(__sklib_bitmap bmp, __sklib_color clr);
Expand Down Expand Up @@ -731,6 +732,7 @@ __sklib_string __sklib__music_filename__music(__sklib_music data);
__sklib_string __sklib__music_name__music(__sklib_music data);
__sklib_music __sklib__music_named__string_ref(const __sklib_string name);
int __sklib__music_playing();
int __sklib__music_valid__music(__sklib_music m);
float __sklib__music_volume();
void __sklib__pause_music();
void __sklib__play_music__string_ref(const __sklib_string name);
Expand Down Expand Up @@ -957,6 +959,7 @@ __sklib_string __sklib__sound_effect_name__sound_effect(__sklib_sound_effect eff
__sklib_sound_effect __sklib__sound_effect_named__string_ref(const __sklib_string name);
int __sklib__sound_effect_playing__string_ref(const __sklib_string name);
int __sklib__sound_effect_playing__sound_effect(__sklib_sound_effect effect);
int __sklib__sound_effect_valid__sound_effect(__sklib_sound_effect effect);
void __sklib__stop_sound_effect__string_ref(const __sklib_string name);
void __sklib__stop_sound_effect__sound_effect(__sklib_sound_effect effect);
void __sklib__call_for_all_sprites__sprite_float_function_ptr__float(__sklib_sprite_float_function *fn, float val);
Expand Down Expand Up @@ -1098,6 +1101,7 @@ __sklib_vector_2d __sklib__vector_from_center_sprite_to_point__sprite__point_2d_
__sklib_vector_2d __sklib__vector_from_to__sprite__sprite(__sklib_sprite s1, __sklib_sprite s2);
char __sklib__read_char();
__sklib_string __sklib__read_line();
int __sklib__terminal_has_input();
void __sklib__write__char(char data);
void __sklib__write__double(double data);
void __sklib__write__int(int data);
Expand Down
1 change: 1 addition & 0 deletions generated/cpp/images.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ string bitmap_name(bitmap bmp);
bitmap bitmap_named(string name);
rectangle bitmap_rectangle_of_cell(bitmap src, int cell);
void bitmap_set_cell_details(bitmap bmp, int width, int height, int columns, int rows, int count);
bool bitmap_valid(bitmap bmp);
int bitmap_width(bitmap bmp);
int bitmap_width(string name);
void clear_bitmap(bitmap bmp, color clr);
Expand Down
1 change: 1 addition & 0 deletions generated/cpp/music.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ string music_filename(music data);
string music_name(music data);
music music_named(const string &name);
bool music_playing();
bool music_valid(music m);
float music_volume();
void pause_music();
void play_music(const string &name);
Expand Down
1 change: 1 addition & 0 deletions generated/cpp/sound.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ string sound_effect_name(sound_effect effect);
sound_effect sound_effect_named(const string &name);
bool sound_effect_playing(const string &name);
bool sound_effect_playing(sound_effect effect);
bool sound_effect_valid(sound_effect effect);
void stop_sound_effect(const string &name);
void stop_sound_effect(sound_effect effect);

Expand Down
19 changes: 19 additions & 0 deletions generated/cpp/splashkit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2185,6 +2185,11 @@ void bitmap_set_cell_details(bitmap bmp, int width, int height, int columns, int
int __skparam__count = __skadapter__to_int(count);
__sklib__bitmap_set_cell_details__bitmap__int__int__int__int__int(__skparam__bmp, __skparam__width, __skparam__height, __skparam__columns, __skparam__rows, __skparam__count);
}
bool bitmap_valid(bitmap bmp) {
__sklib_bitmap __skparam__bmp = __skadapter__to_sklib_bitmap(bmp);
int __skreturn = __sklib__bitmap_valid__bitmap(__skparam__bmp);
return __skadapter__to_bool(__skreturn);
}
int bitmap_width(bitmap bmp) {
__sklib_bitmap __skparam__bmp = __skadapter__to_sklib_bitmap(bmp);
int __skreturn = __sklib__bitmap_width__bitmap(__skparam__bmp);
Expand Down Expand Up @@ -3085,6 +3090,11 @@ bool music_playing() {
int __skreturn = __sklib__music_playing();
return __skadapter__to_bool(__skreturn);
}
bool music_valid(music m) {
__sklib_music __skparam__m = __skadapter__to_sklib_music(m);
int __skreturn = __sklib__music_valid__music(__skparam__m);
return __skadapter__to_bool(__skreturn);
}
float music_volume() {
float __skreturn = __sklib__music_volume();
return __skadapter__to_float(__skreturn);
Expand Down Expand Up @@ -4387,6 +4397,11 @@ bool sound_effect_playing(sound_effect effect) {
int __skreturn = __sklib__sound_effect_playing__sound_effect(__skparam__effect);
return __skadapter__to_bool(__skreturn);
}
bool sound_effect_valid(sound_effect effect) {
__sklib_sound_effect __skparam__effect = __skadapter__to_sklib_sound_effect(effect);
int __skreturn = __sklib__sound_effect_valid__sound_effect(__skparam__effect);
return __skadapter__to_bool(__skreturn);
}
void stop_sound_effect(const string &name) {
const __sklib_string __skparam__name = __skadapter__to_sklib_string(name);
__sklib__stop_sound_effect__string_ref(__skparam__name);
Expand Down Expand Up @@ -5147,6 +5162,10 @@ string read_line() {
__sklib_string __skreturn = __sklib__read_line();
return __skadapter__to_string(__skreturn);
}
bool terminal_has_input() {
int __skreturn = __sklib__terminal_has_input();
return __skadapter__to_bool(__skreturn);
}
void write(char data) {
char __skparam__data = __skadapter__to_char(data);
__sklib__write__char(__skparam__data);
Expand Down
1 change: 1 addition & 0 deletions generated/cpp/terminal.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ using std::vector;

char read_char();
string read_line();
bool terminal_has_input();
void write(char data);
void write(double data);
void write(int data);
Expand Down
42 changes: 42 additions & 0 deletions generated/csharp/SplashKit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,9 @@ private static void __skadapter__update_from_vector_bool(ref __sklib_vector_bool
[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__bitmap_set_cell_details__bitmap__int__int__int__int__int", CharSet=CharSet.Ansi)]
private static extern void __sklib__bitmap_set_cell_details__bitmap__int__int__int__int__int(__sklib_ptr bmp, int width, int height, int columns, int rows, int count);

[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__bitmap_valid__bitmap", CharSet=CharSet.Ansi)]
private static extern int __sklib__bitmap_valid__bitmap(__sklib_ptr bmp);

[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__bitmap_width__bitmap", CharSet=CharSet.Ansi)]
private static extern int __sklib__bitmap_width__bitmap(__sklib_ptr bmp);

Expand Down Expand Up @@ -2710,6 +2713,9 @@ private static void __skadapter__update_from_vector_bool(ref __sklib_vector_bool
[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__music_playing", CharSet=CharSet.Ansi)]
private static extern int __sklib__music_playing();

[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__music_valid__music", CharSet=CharSet.Ansi)]
private static extern int __sklib__music_valid__music(__sklib_ptr m);

[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__music_volume", CharSet=CharSet.Ansi)]
private static extern float __sklib__music_volume();

Expand Down Expand Up @@ -3388,6 +3394,9 @@ private static void __skadapter__update_from_vector_bool(ref __sklib_vector_bool
[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__sound_effect_playing__sound_effect", CharSet=CharSet.Ansi)]
private static extern int __sklib__sound_effect_playing__sound_effect(__sklib_ptr effect);

[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__sound_effect_valid__sound_effect", CharSet=CharSet.Ansi)]
private static extern int __sklib__sound_effect_valid__sound_effect(__sklib_ptr effect);

[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__stop_sound_effect__string_ref", CharSet=CharSet.Ansi)]
private static extern void __sklib__stop_sound_effect__string_ref(__sklib_string name);

Expand Down Expand Up @@ -3811,6 +3820,9 @@ private static void __skadapter__update_from_vector_bool(ref __sklib_vector_bool
[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__read_line", CharSet=CharSet.Ansi)]
private static extern __sklib_string __sklib__read_line();

[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__terminal_has_input", CharSet=CharSet.Ansi)]
private static extern int __sklib__terminal_has_input();

[DllImport("splashkit.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint="__sklib__write__char", CharSet=CharSet.Ansi)]
private static extern void __sklib__write__char(char data);

Expand Down Expand Up @@ -8015,6 +8027,14 @@ public static void BitmapSetCellDetails(Bitmap bmp, int width, int height, int c
__skparam__count = __skadapter__to_sklib_int(count);
__sklib__bitmap_set_cell_details__bitmap__int__int__int__int__int(__skparam__bmp, __skparam__width, __skparam__height, __skparam__columns, __skparam__rows, __skparam__count);
}
public static bool BitmapValid(Bitmap bmp)
{
__sklib_ptr __skparam__bmp;
int __skreturn;
__skparam__bmp = __skadapter__to_sklib_bitmap(bmp);
__skreturn = __sklib__bitmap_valid__bitmap(__skparam__bmp);
return __skadapter__to_bool(__skreturn);
}
public static int BitmapWidth(Bitmap bmp)
{
__sklib_ptr __skparam__bmp;
Expand Down Expand Up @@ -9449,6 +9469,14 @@ public static bool MusicPlaying()
__skreturn = __sklib__music_playing();
return __skadapter__to_bool(__skreturn);
}
public static bool MusicValid(Music m)
{
__sklib_ptr __skparam__m;
int __skreturn;
__skparam__m = __skadapter__to_sklib_music(m);
__skreturn = __sklib__music_valid__music(__skparam__m);
return __skadapter__to_bool(__skreturn);
}
public static float MusicVolume()
{
float __skreturn;
Expand Down Expand Up @@ -11550,6 +11578,14 @@ public static bool SoundEffectPlaying(SoundEffect effect)
__skreturn = __sklib__sound_effect_playing__sound_effect(__skparam__effect);
return __skadapter__to_bool(__skreturn);
}
public static bool SoundEffectValid(SoundEffect effect)
{
__sklib_ptr __skparam__effect;
int __skreturn;
__skparam__effect = __skadapter__to_sklib_sound_effect(effect);
__skreturn = __sklib__sound_effect_valid__sound_effect(__skparam__effect);
return __skadapter__to_bool(__skreturn);
}
public static void StopSoundEffect(string name)
{
__sklib_string __skparam__name;
Expand Down Expand Up @@ -12756,6 +12792,12 @@ public static string ReadLine()
__skreturn = __sklib__read_line();
return __skadapter__to_string(__skreturn);
}
public static bool TerminalHasInput()
{
int __skreturn;
__skreturn = __sklib__terminal_has_input();
return __skadapter__to_bool(__skreturn);
}
public static void Write(char data)
{
char __skparam__data;
Expand Down
Loading

0 comments on commit 4e25890

Please sign in to comment.