User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

script [2014/06/26 14:52] (current)
ybalrid created
Line 1: Line 1:
 +====== Scripting ======
 +
 +A program build with Annwvyn is intended to be 100% compilled C++.
 +
 +You have a C++ scripting interface with some classes like AnnGameObject or AnnTriggerObject. The idea is to derivate theses baseclasses and override some methods
 +
 +===== AnnGameObject =====
 +==== At object creation ====
 +
 +The virtual method "​AnnGameObject::​postInit()"​ is called by the engine at the object creation. If you need to initialize parameters, you have to do it here.
 +
 +==== At each frame ====
 +
 +If you need code to be run at each frame by an object, you can override the "​AnnGameObject::​atRefresh()"​ method.
 +
 +
 +