Squirrel

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
==Introduction==
+
== 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 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 inspired by languages like Python, Javascript and expecially 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.
  
Squirrel's syntax is similar to C/C++/Java etc... but the language has a very dynamic nature like Python/Lua.
+
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 ==
  
== Links ==
 
 
'''Server-side Scripting'''
 
'''Server-side Scripting'''
 
* [[Squirrel/Server/Functions|Functions]]
 
* [[Squirrel/Server/Functions|Functions]]

Revision as of 03:45, 25 September 2010

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