Go Back   RunUO - Ultima Online Emulation > RunUO > Modification Suggestions

Modification Suggestions This is where you can suggest a modifcation to RunUO!

Reply
 
Thread Tools Display Modes
Old 07-21-2006, 07:17 PM   #1 (permalink)
Forum Expert
 
Join Date: Dec 2002
Posts: 730
Default Tags

There are many properties on Mobile and Item that are used only in a minority of instances and on most cases have a zero or null value. Wouldn't it be better to use a tag system where you can dynamically add/remove properties when needed? it would make it much easier (and reduce the amount of default script editing for custom stuff) to add properties that are only used in a few cases. It would also save memory from the properties that are not used. It could be implemented as a hashtable (pointed by a property named Tags or something) that would store extra properties needed. When you need a new one you just add it to the hashtable (this should be rare so propably would not slow the server down much) and from what I understand reading a key in a hashtable is O(1) so no problem to access the properties. Is there any detail I'm missing that would create problems? If not, it would be nice to have this in a default release.
Atomic is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5