Go Back   RunUO - Ultima Online Emulation > RunUO > General Discussion

General Discussion General discussion for the RunUO community, all off-topic posts will be deleted. This forum is NOT FOR SUPPORT!

Reply
 
Thread Tools Display Modes
Old 12-03-2002, 01:00 AM   #1 (permalink)
Lost User
Guest
 
Posts: n/a
Default I LOVE U WHOEVER MADE ReadMobile() METHOD!!!!

I was on the peak of creating this darn thing, and I was thinking - u gotta be a freak to create that many ReadSomething()... there probably aint not ReadMobile() method... and I was about to freak out but then BAM!!!! THERE IS!!!

THANK YOU WHOEVER U ARE, I FEEL LIKE MAKING LOVE TO YOU FOR HOURS AND HOURS AND HOURSS!!!!!
  Reply With Quote
Old 12-03-2002, 01:25 AM   #2 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,868
Default

There's also ReadMobileList, which you might find interesting....
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 12-03-2002, 01:29 AM   #3 (permalink)
Lost User
Guest
 
Posts: n/a
Default

There = where?
  Reply With Quote
Old 12-03-2002, 01:32 AM   #4 (permalink)
joemc
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Richard
There = where?
"There = where" or "There == where" ?
  Reply With Quote
Old 12-03-2002, 02:29 AM   #5 (permalink)
Lost User
Guest
 
Posts: n/a
Default

There-where

(lmao )
  Reply With Quote
Old 12-03-2002, 02:32 AM   #6 (permalink)
Lost User
Guest
 
Posts: n/a
Default

virtual ArrayList ReadMobileList()


... but how does it know when to stop reading?
  Reply With Quote
Old 12-03-2002, 02:45 AM   #7 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,868
Default

Use WriteMobileList from GenericWriter :-)
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 12-03-2002, 10:48 AM   #8 (permalink)
Lost User
Guest
 
Posts: n/a
Default

lmao....


[code:1] public void Serialize( GenericWriter w )
{

w.Write( Mobiles.Count );
for ( int i = 0; i < Mobiles.Count; i++ ) w.Write( (Mobile) Mobiles[i] ); }
[/code:1]

[code:1]
public void Deserialize( GenericReader r )
{ count = r.ReadInt();
for ( int i = 0; i < count; i++ )
Mobiles.Insert( 0, r.ReadMobile() );

}[/code:1]


Isn't that pretty much the same?
  Reply With Quote
Old 12-03-2002, 04:00 PM   #9 (permalink)
Forum Administrator
 
krrios's Avatar
 
Join Date: Aug 2002
Posts: 2,850
Default

Similar, ReadMobileList is like:

[code:1]int count = ReadInt();
ArrayList list = new ArrayList( count );

for ( int i = 0; i < count; ++i )
{
Mobile m = ReadMobile();
if ( m != null )
list.Add( m );
}

return list;[/code:1]
krrios is offline   Reply With Quote
Old 12-03-2002, 05:33 PM   #10 (permalink)
Lost User
Guest
 
Posts: n/a
Default

neat
  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