When you say instances of classes, you mean typeclassed objects? I suppose a global script might be the solution for you, but can you describe a little further your intentions/goals with this?
On Monday, January 22, 2018 at 5:47:18 PM UTC-5, Tyler Littlefield wrote:All:
I have some global objects that I'd like to store. For example I'm
working on a city system as well as various other systems that need to
store instances of classes that can be serialized and/or just loaded.
What would the best way to do this be?
I'm also dealing with zone resets where each zone has its own tag, but
I'll need to store reset data somewhere. I was thinking about having a
class called Zone that holds this data as well as any other required
data and attach that somehow, but I'm not sure of the best way to store
this information.
Thanks,
--
You received this message because you are subscribed to the Google Groups "Evennia" group.
To unsubscribe from this group and stop receiving emails from it, send an email to evennia+u...@googlegroups.com.
To post to this group, send email to eve...@googlegroups.com.
Visit this group at https://groups.google.com/group/evennia.
To view this discussion on the web visit https://groups.google.com/d/msgid/evennia/cf784376-d344-4c10-85da-fa768de8094b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 1/22/2018 6:12 PM, Nicholas Matlaga wrote:
First I have a city object (doesn't have to be a typeclass--I'd honestly prefer that it wasn't since it's not an actual object that you need to have all that logic on). It holds things like economy information, etc. Same thing for zones: you have x amount of zones and each one needs information that dictates what gets to reset on them. So like:When you say instances of classes, you mean typeclassed objects? I suppose a global script might be the solution for you, but can you describe a little further your intentions/goals with this?
{"city_guard", 10}
sets up 10 city guards.
On Monday, January 22, 2018 at 5:47:18 PM UTC-5, Tyler Littlefield wrote:--All:
I have some global objects that I'd like to store. For example I'm
working on a city system as well as various other systems that need to
store instances of classes that can be serialized and/or just loaded.
What would the best way to do this be?
I'm also dealing with zone resets where each zone has its own tag, but
I'll need to store reset data somewhere. I was thinking about having a
class called Zone that holds this data as well as any other required
data and attach that somehow, but I'm not sure of the best way to store
this information.
Thanks,
--