de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Global Methods and Variables?
PostPosted: Thu Apr 12, 2018 11:09 am 
Offline
Regular
Assumed that my tease is separated in multiple scripts but I got some methods which I would like to use in every script. Do I have to define those methods in every script itself or is there a way to define them in one place only and use it from all scripts of the tease?

Same question for variables. To share data between scripts of one tease do I have to use the persistent data.properties with save(...) and loadXYZ(...) or is there a way to define global variables like in java which can be shared between multiple instances of classes?


Top
 Profile Send private message 
 
 Re: Global Methods and Variables?
PostPosted: Thu Apr 12, 2018 5:34 pm 
Offline
Site Admin
User avatar
Your scripts parts are considered a some independent scripts, so you have to use some load/save code to share data between them.


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.