var/test
Problem description:
Would I need to manually save each world variable, or just a standard save proc rather than one attached to a mob? Same for objects.
Code:
var/test
Problem description: Would I need to manually save each world variable, or just a standard save proc rather than one attached to a mob? Same for objects. |
Oct 6 2016, 11:44 am
|
|
Global vars would have to be saved manually. However if you keep them in a datum, you can simply save the datum.
|
In response to Lummox JR
|
|
I'm still rather new to BYOND, how exactly would I do so and what is a datum?
|
A datum is basically any object, which holds its own vars and procs. Think of atoms (areas, turfs, objs, mobs) as special versions of datums. So for instance, if you wanted a datum to hold world settings:
settings You could save that datum to a file, and also load it. world/New() |
In response to Lummox JR
|
|
Thanks! I thought I knew what that was, something similar to classes in Python, but I wasn't sure. :p.
|