|
From: Mike H. <mh...@le...> - 2001-09-07 20:36:47
|
As Youngm and I further flesh out things such as serializing and externalizing objects we decided the MapObject should have a method: public short getMapObjectType() That returns a short that identifies the type of the MapObject. This will be used in the communications protocol so when the server is sending new object notification to the client the server only has to send 2 bytes instead of a whole class name. We will obviously have to develop a system for translating class names into shorts and vice-versa but that should fit well into the plug-ins idea. We could basically make it so any implementable MapObject is a plug-in and part of the definition of a plug-in is a unique 2 byte identifier. That would require some type of registration service for plug-ins but IANA does this so why can't we? :) heathm |