Beispiel #1
0
void register_datetime_script_functions() {
  scAdd_External_Symbol("DateTime::get_Now", (void*)DateTime_Now);
  scAdd_External_Symbol("DateTime::get_DayOfMonth", (void*)DateTime_GetDayOfMonth);
  scAdd_External_Symbol("DateTime::get_Hour", (void*)DateTime_GetHour);
  scAdd_External_Symbol("DateTime::get_Minute", (void*)DateTime_GetMinute);
  scAdd_External_Symbol("DateTime::get_Month", (void*)DateTime_GetMonth);
  scAdd_External_Symbol("DateTime::get_RawTime", (void*)DateTime_GetRawTime);
  scAdd_External_Symbol("DateTime::get_Second", (void*)DateTime_GetSecond);
  scAdd_External_Symbol("DateTime::get_Year", (void*)DateTime_GetYear);
  scAdd_External_Symbol("GetRawTime",(void *)GetRawTime);
  scAdd_External_Symbol("GetTime",(void *)sc_GetTime);
}
Beispiel #2
0
void register_gui_script_functions() {
  scAdd_External_Symbol("GUI::Centre^0", (void *)GUI_Centre);
  scAdd_External_Symbol("GUI::GetAtScreenXY^2", (void *)GetGUIAtLocation);
  scAdd_External_Symbol("GUI::SetPosition^2", (void *)GUI_SetPosition);
  scAdd_External_Symbol("GUI::SetSize^2", (void *)GUI_SetSize);
  scAdd_External_Symbol("GUI::get_BackgroundGraphic", (void *)GUI_GetBackgroundGraphic);
  scAdd_External_Symbol("GUI::set_BackgroundGraphic", (void *)GUI_SetBackgroundGraphic);
  scAdd_External_Symbol("GUI::get_Clickable", (void *)GUI_GetClickable);
  scAdd_External_Symbol("GUI::set_Clickable", (void *)GUI_SetClickable);
  scAdd_External_Symbol("GUI::get_ControlCount", (void *)GUI_GetControlCount);
  scAdd_External_Symbol("GUI::geti_Controls", (void *)GUI_GetiControls);
  scAdd_External_Symbol("GUI::get_Height", (void *)GUI_GetHeight);
  scAdd_External_Symbol("GUI::set_Height", (void *)GUI_SetHeight);
  scAdd_External_Symbol("GUI::get_ID", (void *)GUI_GetID);
  scAdd_External_Symbol("GUI::get_Transparency", (void *)GUI_GetTransparency);
  scAdd_External_Symbol("GUI::set_Transparency", (void *)GUI_SetTransparency);
  scAdd_External_Symbol("GUI::get_Visible", (void *)GUI_GetVisible);
  scAdd_External_Symbol("GUI::set_Visible", (void *)GUI_SetVisible);
  scAdd_External_Symbol("GUI::get_Width", (void *)GUI_GetWidth);
  scAdd_External_Symbol("GUI::set_Width", (void *)GUI_SetWidth);
  scAdd_External_Symbol("GUI::get_X", (void *)GUI_GetX);
  scAdd_External_Symbol("GUI::set_X", (void *)GUI_SetX);
  scAdd_External_Symbol("GUI::get_Y", (void *)GUI_GetY);
  scAdd_External_Symbol("GUI::set_Y", (void *)GUI_SetY);
  scAdd_External_Symbol("GUI::get_ZOrder", (void *)GUI_GetZOrder);
  scAdd_External_Symbol("GUI::set_ZOrder", (void *)GUI_SetZOrder);
  scAdd_External_Symbol("CentreGUI",(void *)CentreGUI);
  scAdd_External_Symbol("FindGUIID",(void *)FindGUIID);
  scAdd_External_Symbol("GetGUIAt", (void *)GetGUIAt);
  scAdd_External_Symbol("InterfaceOff",(void *)InterfaceOff);
  scAdd_External_Symbol("InterfaceOn",(void *)InterfaceOn);
  scAdd_External_Symbol("IsGUIOn", (void *)IsGUIOn);
  scAdd_External_Symbol("SetGUIBackgroundPic", (void *)SetGUIBackgroundPic);
  scAdd_External_Symbol("SetGUIClickable", (void *)SetGUIClickable);
  scAdd_External_Symbol("SetGUIPosition",(void *)SetGUIPosition);
  scAdd_External_Symbol("SetGUISize",(void *)SetGUISize);
  scAdd_External_Symbol("SetGUITransparency", (void *)SetGUITransparency);
  scAdd_External_Symbol("SetGUIZOrder", (void *)SetGUIZOrder);
}
Beispiel #3
0
Datei: lcd.c Projekt: cravo/damp
void lcd_load_driver(char *drivername)
{
   /* Initialise the shared stuff (for dampcore.sh) */

   script_init();

   /* Add the LCD-specific stuff for the driver */

   scAdd_External_Symbol("lcd_surround_symbol", &lcd_surround_symbol);
   scAdd_External_Symbol("lcd_play_symbol", &lcd_play_symbol);
   scAdd_External_Symbol("lcd_random_symbol", &lcd_random_symbol);
   scAdd_External_Symbol("lcd_rew_symbol", &lcd_rew_symbol);
   scAdd_External_Symbol("lcd_continuous_symbol", &lcd_continuous_symbol);

   scAdd_External_Symbol("lcd_driver_name", lcd_driver_name);
   scAdd_External_Symbol("lcd_driver_author", lcd_driver_author);
   scAdd_External_Symbol("lcd_driver_author_email", lcd_driver_author_email);
   scAdd_External_Symbol("lcd_driver_description", lcd_driver_description);
   scAdd_External_Symbol("lcd_driver_version", &lcd_driver_version);

   scAdd_External_Symbol("lcd_display_width", &lcd_display_width);
   scAdd_External_Symbol("lcd_display_lines", &lcd_display_lines);

   scAdd_External_Symbol("lcd_line", lcd_line);

   scAdd_External_Symbol("damp_vu", &damp_vu);
   scAdd_External_Symbol("damp_random_play", &damp_playlist_random);
   scAdd_External_Symbol("damp_surround", &audio_driver->surround);
   scAdd_External_Symbol("damp_paused", &track_paused);
   scAdd_External_Symbol("damp_volume", &damp_volume);
   scAdd_External_Symbol("damp_status", lcd_status);
   scAdd_External_Symbol("damp_filename", short_filename);
   scAdd_External_Symbol("damp_playlist_filename", damp_playlist_filename);
   scAdd_External_Symbol("damp_playlist_filename_short", damp_playlist_filename_short);
   scAdd_External_Symbol("damp_id3_title", damp_id3_tag.title);
   scAdd_External_Symbol("damp_id3_artist", damp_id3_tag.artist);
   scAdd_External_Symbol("damp_id3_album", damp_id3_tag.album);
   scAdd_External_Symbol("damp_id3_year", damp_id3_tag.year);
   scAdd_External_Symbol("damp_id3_comment", damp_id3_tag.comment);
   scAdd_External_Symbol("damp_id3_genre", damp_id3_genre);
   scAdd_External_Symbol("damp_time", timestr);
   scAdd_External_Symbol("damp_time_remaining", timeremainstr);
   scAdd_External_Symbol("damp_track_number", &damp_track_number);
   scAdd_External_Symbol("damp_selection_buffer", track_sel);
   scAdd_External_Symbol("damp_state", &damp_state);

   /* Compile the driver */

   lcd_driver_script = scCompile_File(drivername);

   /* If that failed, give an error */

   if(lcd_driver_script == NULL)
   {
      printf("Failed to load LCD driver: %s\n",drivername);
      printf("%s\n",scErrorMsg);
      exit(-1);
   }

   /* Create an instance of the driver */

   lcd_driver_instance = scCreate_Instance(lcd_driver_script,NULL);

   /* If that failed, give an error */

   if(!lcd_driver_instance)
   {
      printf("Failed to instance LCD driver: %s\n",drivername);
      printf("%s\n",scErrorMsg);
      exit(-1);
   }

}
Beispiel #4
0
void AddOapiExternals()
{
	scAdd_External_Symbol("soBornPlayer", (void*)soBornPlayer);
	scAdd_External_Symbol("soGetPlayer", (void*)soGetPlayer);
	scAdd_External_Symbol("soSetPlayer", (void*)soSetPlayer);
	scAdd_External_Symbol("soBornShot", (void*)soBornShot);
	scAdd_External_Symbol("soGetShot", (void*)soGetShot);
	scAdd_External_Symbol("soSetShot", (void*)soSetShot);
	scAdd_External_Symbol("soBornExtra", (void*)soBornExtra);
	scAdd_External_Symbol("soGetExtra", (void*)soGetExtra);
	scAdd_External_Symbol("soSetExtra", (void*)soSetExtra);
	scAdd_External_Symbol("soBornBomb", (void*)soBornBomb);
	scAdd_External_Symbol("soGetBomb", (void*)soGetBomb);
	scAdd_External_Symbol("soSetBomb", (void*)soSetBomb);

	scAdd_External_Symbol("coBornPlayer", (void*)coBornPlayer);
	scAdd_External_Symbol("coGetPlayer", (void*)coGetPlayer);
	scAdd_External_Symbol("coSetPlayer", (void*)coSetPlayer);
	scAdd_External_Symbol("coBornShot", (void*)coBornShot);
	scAdd_External_Symbol("coGetShot", (void*)coGetShot);
	scAdd_External_Symbol("coSetShot", (void*)coSetShot);
	scAdd_External_Symbol("coBornExtra", (void*)coBornExtra);
	scAdd_External_Symbol("coGetExtra", (void*)coGetExtra);
	scAdd_External_Symbol("coSetExtra", (void*)coSetExtra);
	scAdd_External_Symbol("coBornBomb", (void*)coBornBomb);
	scAdd_External_Symbol("coGetBomb", (void*)coGetBomb);
	scAdd_External_Symbol("coSetBomb", (void*)coSetBomb);
}
Beispiel #5
0
void register_list_box_script_functions() {
  scAdd_External_Symbol("ListBox::AddItem^1", (void *)ListBox_AddItem);
  scAdd_External_Symbol("ListBox::Clear^0", (void *)ListBox_Clear);
  scAdd_External_Symbol("ListBox::FillDirList^1", (void *)ListBox_FillDirList);
  scAdd_External_Symbol("ListBox::FillSaveGameList^0", (void *)ListBox_FillSaveGameList);
  scAdd_External_Symbol("ListBox::GetItemAtLocation^2", (void *)ListBox_GetItemAtLocation);
  scAdd_External_Symbol("ListBox::GetItemText^2", (void *)ListBox_GetItemText);
  scAdd_External_Symbol("ListBox::InsertItemAt^2", (void *)ListBox_InsertItemAt);
  scAdd_External_Symbol("ListBox::RemoveItem^1", (void *)ListBox_RemoveItem);
  scAdd_External_Symbol("ListBox::ScrollDown^0", (void *)ListBox_ScrollDown);
  scAdd_External_Symbol("ListBox::ScrollUp^0", (void *)ListBox_ScrollUp);
  scAdd_External_Symbol("ListBox::SetItemText^2", (void *)ListBox_SetItemText);
  scAdd_External_Symbol("ListBox::get_Font", (void *)ListBox_GetFont);
  scAdd_External_Symbol("ListBox::set_Font", (void *)ListBox_SetFont);
  scAdd_External_Symbol("ListBox::get_HideBorder", (void *)ListBox_GetHideBorder);
  scAdd_External_Symbol("ListBox::set_HideBorder", (void *)ListBox_SetHideBorder);
  scAdd_External_Symbol("ListBox::get_HideScrollArrows", (void *)ListBox_GetHideScrollArrows);
  scAdd_External_Symbol("ListBox::set_HideScrollArrows", (void *)ListBox_SetHideScrollArrows);
  scAdd_External_Symbol("ListBox::get_ItemCount", (void *)ListBox_GetItemCount);
  scAdd_External_Symbol("ListBox::geti_Items", (void *)ListBox_GetItems);
  scAdd_External_Symbol("ListBox::seti_Items", (void *)ListBox_SetItemText);
  scAdd_External_Symbol("ListBox::get_RowCount", (void *)ListBox_GetRowCount);
  scAdd_External_Symbol("ListBox::geti_SaveGameSlots", (void *)ListBox_GetSaveGameSlots);
  scAdd_External_Symbol("ListBox::get_SelectedIndex", (void *)ListBox_GetSelectedIndex);
  scAdd_External_Symbol("ListBox::set_SelectedIndex", (void *)ListBox_SetSelectedIndex);
  scAdd_External_Symbol("ListBox::get_TopItem", (void *)ListBox_GetTopItem);
  scAdd_External_Symbol("ListBox::set_TopItem", (void *)ListBox_SetTopItem);
  scAdd_External_Symbol("ListBoxAdd", (void *)ListBoxAdd);
  scAdd_External_Symbol("ListBoxClear", (void *)ListBoxClear);
  scAdd_External_Symbol("ListBoxDirList", (void *)ListBoxDirList);
  scAdd_External_Symbol("ListBoxGetItemText", (void *)ListBoxGetItemText);
  scAdd_External_Symbol("ListBoxGetNumItems", (void *)ListBoxGetNumItems);
  scAdd_External_Symbol("ListBoxGetSelected", (void *)ListBoxGetSelected);
  scAdd_External_Symbol("ListBoxRemove", (void *)ListBoxRemove);
  scAdd_External_Symbol("ListBoxSaveGameList", (void *)ListBoxSaveGameList);
  scAdd_External_Symbol("ListBoxSetSelected", (void *)ListBoxSetSelected);
  scAdd_External_Symbol("ListBoxSetTopItem", (void *)ListBoxSetTopItem);
}
Beispiel #6
0
void register_button_script_functions() {
  scAdd_External_Symbol("Button::Animate^4", (void *)Button_Animate);
  scAdd_External_Symbol("Button::GetText^1", (void *)Button_GetText);
  scAdd_External_Symbol("Button::SetText^1", (void *)Button_SetText);
  scAdd_External_Symbol("Button::get_ClipImage", (void *)Button_GetClipImage);
  scAdd_External_Symbol("Button::set_ClipImage", (void *)Button_SetClipImage);
  scAdd_External_Symbol("Button::get_Font", (void *)Button_GetFont);
  scAdd_External_Symbol("Button::set_Font", (void *)Button_SetFont);
  scAdd_External_Symbol("Button::get_Graphic", (void *)Button_GetGraphic);
  scAdd_External_Symbol("Button::get_MouseOverGraphic", (void *)Button_GetMouseOverGraphic);
  scAdd_External_Symbol("Button::set_MouseOverGraphic", (void *)Button_SetMouseOverGraphic);
  scAdd_External_Symbol("Button::get_NormalGraphic", (void *)Button_GetNormalGraphic);
  scAdd_External_Symbol("Button::set_NormalGraphic", (void *)Button_SetNormalGraphic);
  scAdd_External_Symbol("Button::get_PushedGraphic", (void *)Button_GetPushedGraphic);
  scAdd_External_Symbol("Button::set_PushedGraphic", (void *)Button_SetPushedGraphic);
  scAdd_External_Symbol("Button::get_Text", (void *)Button_GetText_New);
  scAdd_External_Symbol("Button::set_Text", (void *)Button_SetText);
  scAdd_External_Symbol("Button::get_TextColor", (void *)Button_GetTextColor);
  scAdd_External_Symbol("Button::set_TextColor", (void *)Button_SetTextColor);
  scAdd_External_Symbol("AnimateButton",(void *)AnimateButton);
  scAdd_External_Symbol("GetButtonPic",(void *)GetButtonPic);
  scAdd_External_Symbol("SetButtonPic",(void *)SetButtonPic);
  scAdd_External_Symbol("SetButtonText",(void *)SetButtonText);
}
Beispiel #7
0
void register_file_script_functions() {
  scAdd_External_Symbol("File::Delete^1",(void *)File_Delete);
  scAdd_External_Symbol("File::Exists^1",(void *)File_Exists);
  scAdd_External_Symbol("File::Open^2",(void *)sc_OpenFile);
  scAdd_External_Symbol("File::Close^0", (void *)File_Close);
  scAdd_External_Symbol("File::ReadInt^0", (void *)File_ReadInt);
  scAdd_External_Symbol("File::ReadRawChar^0", (void *)File_ReadRawChar);
  scAdd_External_Symbol("File::ReadRawInt^0", (void *)File_ReadRawInt);
  scAdd_External_Symbol("File::ReadRawLine^1", (void *)File_ReadRawLine);
  scAdd_External_Symbol("File::ReadRawLineBack^0", (void *)File_ReadRawLineBack);
  scAdd_External_Symbol("File::ReadString^1", (void *)File_ReadString);
  scAdd_External_Symbol("File::ReadStringBack^0", (void *)File_ReadStringBack);
  scAdd_External_Symbol("File::WriteInt^1", (void *)File_WriteInt);
  scAdd_External_Symbol("File::WriteRawChar^1", (void *)File_WriteRawChar);
  scAdd_External_Symbol("File::WriteRawLine^1", (void *)File_WriteRawLine);
  scAdd_External_Symbol("File::WriteString^1", (void *)File_WriteString);
  scAdd_External_Symbol("File::get_EOF", (void *)File_GetEOF);
  scAdd_External_Symbol("File::get_Error", (void *)File_GetError);
  scAdd_External_Symbol("FileClose",(void *)FileClose);
  scAdd_External_Symbol("FileIsEOF",(void *)FileIsEOF);
  scAdd_External_Symbol("FileIsError",(void *)FileIsError);
  scAdd_External_Symbol("FileOpen",(void *)FileOpen);
  scAdd_External_Symbol("FileRead",(void *)FileRead);
  scAdd_External_Symbol("FileReadInt",(void *)FileReadInt);
  scAdd_External_Symbol("FileReadRawChar",(void *)FileReadRawChar);
  scAdd_External_Symbol("FileReadRawInt",(void *)FileReadRawInt);
  scAdd_External_Symbol("FileWrite",(void *)FileWrite);
  scAdd_External_Symbol("FileWriteInt",(void *)FileWriteInt);
  scAdd_External_Symbol("FileWriteRawChar",(void *)FileWriteRawChar);
  scAdd_External_Symbol("FileWriteRawLine", (void *)FileWriteRawLine);
}
Beispiel #8
0
void AddMapiExternals()
{
	scAdd_External_Symbol("smGetBlockStr", (void*)smGetBlockStr);
	scAdd_External_Symbol("smSetBlockStr", (void*)smSetBlockStr);
	scAdd_External_Symbol("smGetAnimStr", (void*)smGetAnimStr);
	scAdd_External_Symbol("smSetAnimStr", (void*)smSetAnimStr);
	scAdd_External_Symbol("smSetMapLayer", (void*)smSetMapLayer);
	scAdd_External_Symbol("smGetMapVal", (void*)smGetMapVal);
	scAdd_External_Symbol("smGetMapBlock", (void*)smGetMapBlock);
	scAdd_External_Symbol("smGetMapAnim", (void*)smGetMapAnim);
	scAdd_External_Symbol("smSetMapVal", (void*)smSetMapVal);
	scAdd_External_Symbol("smGetMapBlock", (void*)smGetMapBlock);
	scAdd_External_Symbol("smGetMapWidth", (void*)smGetMapWidth);
	scAdd_External_Symbol("smGetMapHeiht", (void*)smGetMapHeight);

	scAdd_External_Symbol("cmGetBlockStr", (void*)cmGetBlockStr);
	scAdd_External_Symbol("cmSetBlockStr", (void*)cmSetBlockStr);
	scAdd_External_Symbol("cmGetAnimStr", (void*)cmGetAnimStr);
	scAdd_External_Symbol("cmSetAnimStr", (void*)cmSetAnimStr);
	scAdd_External_Symbol("cmSetMapLayer", (void*)cmSetMapLayer);
	scAdd_External_Symbol("cmGetMapVal", (void*)cmGetMapVal);
	scAdd_External_Symbol("cmGetMapBlock", (void*)cmGetMapBlock);
	scAdd_External_Symbol("cmGetMapAnim", (void*)cmGetMapAnim);
	scAdd_External_Symbol("cmSetMapVal", (void*)cmSetMapVal);
	scAdd_External_Symbol("cmGetMapBlock", (void*)cmGetMapBlock);
	scAdd_External_Symbol("cmGetMapWidth", (void*)cmGetMapWidth);
	scAdd_External_Symbol("cmGetMapHeiht", (void*)cmGetMapHeight);

	// map global vars
	scAdd_External_Symbol("MapLoaded", &MapLoaded);
	scAdd_External_Symbol("MapName", &MapName);

	scAdd_External_Symbol("MSCRW", &MSCRW);
	scAdd_External_Symbol("MSCRH", &MSCRH);

	scAdd_External_Symbol("MMOX", &MMOX);
	scAdd_External_Symbol("MMOY", &MMOY);

	scAdd_External_Symbol("maperror", &maperror);
	scAdd_External_Symbol("mapwidth", &mapwidth);
	scAdd_External_Symbol("mapheight", &mapheight);
	scAdd_External_Symbol("mappxwidth", &mappxwidth);
	scAdd_External_Symbol("mappxheight", &mappxheight);
	scAdd_External_Symbol("mapblockwidth", &mapblockwidth);
	scAdd_External_Symbol("mapblockheight", &mapblockheight);
	scAdd_External_Symbol("mapdepth", &mapdepth);
	scAdd_External_Symbol("mapblockstrsize", &mapblockstrsize);
	scAdd_External_Symbol("mapnumblockstr", &mapnumblockstr);
	scAdd_External_Symbol("mapnumanimstr", &mapnumanimstr);
	scAdd_External_Symbol("mapnumblockgfx", &mapnumblockgfx);
}
Beispiel #9
0
void register_string_script_functions() {
  scAdd_External_Symbol("String::IsNullOrEmpty^1", (void*)String_IsNullOrEmpty);
  scAdd_External_Symbol("String::Append^1", (void*)String_Append);
  scAdd_External_Symbol("String::AppendChar^1", (void*)String_AppendChar);
  scAdd_External_Symbol("String::CompareTo^2", (void*)String_CompareTo);
  scAdd_External_Symbol("String::Contains^1", (void*)StrContains);
  scAdd_External_Symbol("String::Copy^0", (void*)String_Copy);
  scAdd_External_Symbol("String::EndsWith^2", (void*)String_EndsWith);
  scAdd_External_Symbol("String::Format^101", (void*)String_Format);
  scAdd_External_Symbol("String::IndexOf^1", (void*)StrContains);
  scAdd_External_Symbol("String::LowerCase^0", (void*)String_LowerCase);
  scAdd_External_Symbol("String::Replace^3", (void*)String_Replace);
  scAdd_External_Symbol("String::ReplaceCharAt^2", (void*)String_ReplaceCharAt);
  scAdd_External_Symbol("String::StartsWith^2", (void*)String_StartsWith);
  scAdd_External_Symbol("String::Substring^2", (void*)String_Substring);
  scAdd_External_Symbol("String::Truncate^1", (void*)String_Truncate);
  scAdd_External_Symbol("String::UpperCase^0", (void*)String_UpperCase);
  scAdd_External_Symbol("String::get_AsFloat", (void*)StringToFloat);
  scAdd_External_Symbol("String::get_AsInt", (void*)StringToInt);
  scAdd_External_Symbol("String::geti_Chars", (void*)String_GetChars);
  scAdd_External_Symbol("String::get_Length", (void*)strlen);
  scAdd_External_Symbol("StrCat",(void *)_sc_strcat);
  scAdd_External_Symbol("StrCaseComp",(void *)stricmp);
  scAdd_External_Symbol("StrComp",(void *)strcmp);
  scAdd_External_Symbol("StrContains",(void *)StrContains);
  scAdd_External_Symbol("StrCopy",(void *)_sc_strcpy);
  scAdd_External_Symbol("StrFormat",(void *)_sc_sprintf);
  scAdd_External_Symbol("StrGetCharAt", (void *)StrGetCharAt);
  scAdd_External_Symbol("StringToInt",(void *)StringToInt);
  scAdd_External_Symbol("StrLen",(void *)strlen);
  scAdd_External_Symbol("StrSetCharAt", (void *)StrSetCharAt);
  scAdd_External_Symbol("StrToLowerCase", (void *)_sc_strlower);
  scAdd_External_Symbol("StrToUpperCase", (void *)_sc_strupper);
}
Beispiel #10
0
void register_maths_script_functions() {
  scAdd_External_Symbol("Maths::ArcCos^1", (void*)Math_ArcCos);
  scAdd_External_Symbol("Maths::ArcSin^1", (void*)Math_ArcSin);
  scAdd_External_Symbol("Maths::ArcTan^1", (void*)Math_ArcTan);
  scAdd_External_Symbol("Maths::ArcTan2^2", (void*)Math_ArcTan2);
  scAdd_External_Symbol("Maths::Cos^1", (void*)Math_Cos);
  scAdd_External_Symbol("Maths::Cosh^1", (void*)Math_Cosh);
  scAdd_External_Symbol("Maths::DegreesToRadians^1", (void*)Math_DegreesToRadians);
  scAdd_External_Symbol("Maths::Exp^1", (void*)Math_Exp);
  scAdd_External_Symbol("Maths::Log^1", (void*)Math_Log);
  scAdd_External_Symbol("Maths::Log10^1", (void*)Math_Log10);
  scAdd_External_Symbol("Maths::RadiansToDegrees^1", (void*)Math_RadiansToDegrees);
  scAdd_External_Symbol("Maths::RaiseToPower^2", (void*)Math_RaiseToPower);
  scAdd_External_Symbol("Maths::Sin^1", (void*)Math_Sin);
  scAdd_External_Symbol("Maths::Sinh^1", (void*)Math_Sinh);
  scAdd_External_Symbol("Maths::Sqrt^1", (void*)Math_Sqrt);
  scAdd_External_Symbol("Maths::Tan^1", (void*)Math_Tan);
  scAdd_External_Symbol("Maths::Tanh^1", (void*)Math_Tanh);
  scAdd_External_Symbol("Maths::get_Pi", (void*)Math_GetPi);
  scAdd_External_Symbol("FloatToInt",(void *)FloatToInt);
  scAdd_External_Symbol("IntToFloat",(void *)IntToFloat);
}
Beispiel #11
0
/* PASTE:
  register_multimedia_script_functions();
*/
void register_multimedia_script_functions() {
  scAdd_External_Symbol("IsSoundPlaying",(void *)IsSoundPlaying);
  scAdd_External_Symbol("IsMusicPlaying",(void *)IsMusicPlaying);
  scAdd_External_Symbol("SetSpeechVolume",(void *)SetSpeechVolume);
  scAdd_External_Symbol("SetVoiceMode",(void *)SetVoiceMode);
  scAdd_External_Symbol("IsVoxAvailable",(void *)IsVoxAvailable);
  scAdd_External_Symbol("PlayFlic",(void *)play_flc_file);
  scAdd_External_Symbol("PlayVideo",(void *)scrPlayVideo);
  scAdd_External_Symbol("StopMusic", (void *)scr_StopMusic);
  scAdd_External_Symbol("SetSoundVolume",(void *)SetSoundVolume);
  scAdd_External_Symbol("PlaySilentMIDI",(void *)PlaySilentMIDI);
  scAdd_External_Symbol("CDAudio",(void *)cd_manager);


}