Squirrel

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Marked this version for translation)
Line 1: Line 1:
 
<translate>
 
<translate>
== Introduction ==
+
== Introduction == <!--T:Introduction-->
  
 +
<!--T:About Squirrel-->
 
Squirrel is a high level imperative/OO programming language, designed to be a powerful scripting tool that fits in the size, memory bandwidth, and real-time requirements of applications like games. Squirrel is inspired by languages like Python, Javascript and especially Lua. Squirrel's syntax is similar to C/C++/Java etc. but the language has a very dynamic nature like Python/Lua.
 
Squirrel is a high level imperative/OO programming language, designed to be a powerful scripting tool that fits in the size, memory bandwidth, and real-time requirements of applications like games. Squirrel is inspired by languages like Python, Javascript and especially Lua. Squirrel's syntax is similar to C/C++/Java etc. but the language has a very dynamic nature like Python/Lua.
  
 +
<!--T:3-->
 
Scripting in Liberty Unleashed uses a wide range of Squirrel's object-oriented features. Most internal data types have been exported to Squirrel via classes with their own methods and members which resemble the inner structures of LU and GTA. Events are the way LU discusses with scripts when something happens in the game. Many of these events can be manipulated using different return values.
 
Scripting in Liberty Unleashed uses a wide range of Squirrel's object-oriented features. Most internal data types have been exported to Squirrel via classes with their own methods and members which resemble the inner structures of LU and GTA. Events are the way LU discusses with scripts when something happens in the game. Many of these events can be manipulated using different return values.
  
 +
<!--T:4-->
 
All functions and events listed here will work with both Liberty Unleashed and Vice Unleashed unless stated otherwise. Some of them might require additional modules which are provided to you with the server package. Server-side scripting can be expanded further using the C/C++ module SDK and third party modules.
 
All functions and events listed here will work with both Liberty Unleashed and Vice Unleashed unless stated otherwise. Some of them might require additional modules which are provided to you with the server package. Server-side scripting can be expanded further using the C/C++ module SDK and third party modules.
  
== Resources ==
+
== Resources == <!--T:Resources-->
  
 +
<!--T:Server-side Scripting-->
 
'''Server-side Scripting'''
 
'''Server-side Scripting'''
 
* [[Squirrel/Server/Functions|Functions]]
 
* [[Squirrel/Server/Functions|Functions]]
Line 16: Line 20:
 
* [[Modules|Modules]]
 
* [[Modules|Modules]]
  
 +
<!--T:Client-side Scripting-->
 
'''Client-side Scripting'''
 
'''Client-side Scripting'''
 
* [[Squirrel/Client/Functions|Functions]]
 
* [[Squirrel/Client/Functions|Functions]]
Line 21: Line 26:
 
* [[Squirrel/Client/Constants|Constants]]
 
* [[Squirrel/Client/Constants|Constants]]
  
 +
<!--T:General-->
 
'''General'''
 
'''General'''
 
*[[Squirrel/Script_Types|Script Types]]
 
*[[Squirrel/Script_Types|Script Types]]

Revision as of 16:10, 26 July 2012

Introduction

Squirrel is a high level imperative/OO programming language, designed to be a powerful scripting tool that fits in the size, memory bandwidth, and real-time requirements of applications like games. Squirrel is inspired by languages like Python, Javascript and especially Lua. Squirrel's syntax is similar to C/C++/Java etc. but the language has a very dynamic nature like Python/Lua.

Scripting in Liberty Unleashed uses a wide range of Squirrel's object-oriented features. Most internal data types have been exported to Squirrel via classes with their own methods and members which resemble the inner structures of LU and GTA. Events are the way LU discusses with scripts when something happens in the game. Many of these events can be manipulated using different return values.

All functions and events listed here will work with both Liberty Unleashed and Vice Unleashed unless stated otherwise. Some of them might require additional modules which are provided to you with the server package. Server-side scripting can be expanded further using the C/C++ module SDK and third party modules.

Resources

Server-side Scripting

Client-side Scripting

General

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox