ID:152551
Jun 22 2006, 11:29 am
|
|
I was wondering if someone could tell me what is a datum, and how to create one. After reading Lummox JR datum tutorial on byondscape, I'm still having a hard time trying to understand the concept...
|
In response to Loduwijk
|
|
I am also gonna use this post for furture references. Thanks for explaining Datums and providing a good example Lummox :D
§atans§pawn |
In response to Satans Spawn
|
|
Satans Spawn wrote:
Thanks for explaining Datums and providing a good example Lummox :D You mean Loduwijk? |
In response to Loduwijk
|
|
Loduwijk wrote:
Satans Spawn wrote: <_< _> I have a bad Habit of not looking at who posted what... I think I read something about Lummox before coming here, and saw your name with an L and stopped reading there... _> <_< §atans§pawn |
In response to Satans Spawn
|
|
Satans Spawn wrote:
I have a bad Habit of not looking at who posted what... I think I read something about Lummox before coming here, and saw your name with an L and stopped reading there... I mentioned his name in my post, so that is probably what you are talking about. |
In response to Loduwijk
|
|
Most likely... and Sorry as well... I feel kinda sheepish... Baaaaa
§atans§pawn |
In response to Loduwijk
|
|
Thanks for explaining...
|
Here's what the basic, default setup looks like.
That is what is already set up for you by default.
Now, since only objects derived from type /atom can be on the map, that means that anything else derived from datum is an object that won't be on the map and therefor won't be seen by players.
Creating your own objects derived from the datum type is just a good way to keep data together, or to give certain kinds of data its own functions. For example...
Then if you wanted to make use of that new object...
You can also use this abstract object idea for a lot of other things. My KeyState library uses it to keep track of keyboard information, LummoxJR's SwapMaps library uses it to keep track of map information, Deadron's pathfinding library uses them for path information. They can be used for a wide variety of things to make programming easier.