Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 03-18-2003, 01:31 AM   #1 (permalink)
 
Join Date: Feb 2003
Posts: 119
Send a message via AIM to NikG43
Default move BaseMulti from the core

think there is anyway the devs could do this?

NikG43
NikG43 is offline   Reply With Quote
Old 03-18-2003, 01:50 AM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

I doubt it, the Item and Mobile classes are part of the core. I suspect the BaseMulti is part of it too.

What can't you do with the BaseHouse?

I only see two override functions in the BaseHouse class, so what can't you do with it?
Phantom is offline   Reply With Quote
Old 03-18-2003, 01:59 AM   #3 (permalink)
 
Join Date: Feb 2003
Posts: 119
Send a message via AIM to NikG43
Default

I am trying to make a BaseCustomHouse. The problem i have is that the BaseHouse doesn't have enough code for me to browse through. Almost all of the code is in the BaseMulti Class. so i wanted it to be moved so i could use it to gain knowledge.

NikG43
NikG43 is offline   Reply With Quote
Old 03-18-2003, 02:05 AM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Sure it does... Like I said there are only two override functions, so thats all you would gain from getting that class, but like I said, iTs part of the core most likely and will never be seen if thats the case.
Phantom is offline   Reply With Quote
Old 03-18-2003, 02:10 AM   #5 (permalink)
Forum Administrator
 
krrios's Avatar
 
Join Date: Aug 2002
Posts: 2,850
Default

Very little is included in BaseMulti, but here it is for your viewing pleasure:

[code:1]using System;

namespace Server.Items
{
public class BaseMulti : Item
{
[Constructable]
public BaseMulti( int itemID ) : base( itemID )
{
Movable = false;
}

public BaseMulti( Serial serial ) : base( serial )
{
}

public virtual void RefreshComponents()
{
Map map = Map;

if ( map != null )
{
map.OnLeave( this );
map.OnEnter( this );
}
}

public override int LabelNumber
{
get
{
MultiComponentList mcl = this.Components;

if ( mcl.List.Length > 0 )
return 1020000 + (mcl.List[0].m_ItemID & 0x3FFF);

return base.LabelNumber;
}
}

public override int GetMaxUpdateRange()
{
return 22;
}

public override int GetUpdateRange( Mobile m )
{
return 22;
}

public MultiComponentList Components
{
get
{
return MultiData.GetComponents( ItemID );
}
}

public virtual bool Contains( Point2D p )
{
return Contains( p.m_X, p.m_Y );
}

public virtual bool Contains( Point3D p )
{
return Contains( p.m_X, p.m_Y );
}

public virtual bool Contains( IPoint3D p )
{
return Contains( p.X, p.Y );
}

public virtual bool Contains( int x, int y )
{
MultiComponentList mcl = this.Components;

x -= this.X + mcl.Min.m_X;
y -= this.Y + mcl.Min.m_Y;

return x >= 0
&& x < mcl.Width
&& y >= 0
&& y < mcl.Height
&& mcl.Tiles[x][y].Length > 0;
}

public bool Contains( Mobile m )
{
if ( m.Map == this.Map )
return Contains( m.X, m.Y );
else
return false;
}

public bool Contains( Item item )
{
if ( item.Map == this.Map )
return Contains( item.X, item.Y );
else
return false;
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

writer.Write( (int) 0 ); // version
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );

int version = reader.ReadInt();
}
}
}[/code:1]
krrios is offline   Reply With Quote
Old 03-18-2003, 02:23 AM   #6 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

I guess I was wrong :shock:
Phantom is offline   Reply With Quote
Old 03-18-2003, 07:38 PM   #7 (permalink)
 
Join Date: Feb 2003
Posts: 119
Send a message via AIM to NikG43
Default

thanks krrios i'll see what i can doo with it

NikG43
NikG43 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