本文整理汇总了C#中Server.Factions.Town类的典型用法代码示例。如果您正苦于以下问题:C# Town类的具体用法?C# Town怎么用?C# Town使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Town类属于Server.Factions命名空间,在下文中一共展示了Town类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FactionTownStoneGump
public FactionTownStoneGump( PlayerMobile from, Faction faction, Town town ) : base( 50, 50 )
{
m_From = from;
m_Faction = faction;
m_Town = town;
AddPage( 0 );
AddBackground( 0, 0, 320, 250, 5054 );
AddBackground( 10, 10, 300, 230, 3000 );
AddHtmlText( 25, 30, 250, 25, town.Definition.FactionTownStoneHeader, false, false );
AddHtmlLocalized( 55, 60, 150, 25, 1011557, false, false ); // Hire Sheriff
AddButton( 20, 60, 4005, 4007, 1, GumpButtonType.Reply, 0 );
AddHtmlLocalized( 55, 90, 150, 25, 1011559, false, false ); // Hire Finance Minister
AddButton( 20, 90, 4005, 4007, 2, GumpButtonType.Reply, 0 );
AddHtmlLocalized( 55, 120, 150, 25, 1011558, false, false ); // Fire Sheriff
AddButton( 20, 120, 4005, 4007, 3, GumpButtonType.Reply, 0 );
AddHtmlLocalized( 55, 150, 150, 25, 1011560, false, false ); // Fire Finance Minister
AddButton( 20, 150, 4005, 4007, 4, GumpButtonType.Reply, 0 );
AddHtmlLocalized( 55, 210, 150, 25, 1011441, false, false ); // EXIT
AddButton( 20, 210, 4005, 4007, 0, GumpButtonType.Reply, 0 );
}
示例2: FactionOreVendor
public FactionOreVendor( Town town, Faction faction )
: base(town, faction, "the Ore Man")
{
// NOTE: Skills verified
SetSkill( SkillName.Carpentry, 85.0, 100.0 );
SetSkill( SkillName.Lumberjacking, 60.0, 83.0 );
}
示例3: FactionHorseVendor
public FactionHorseVendor( Town town, Faction faction )
: base(town, faction, "the Horse Breeder")
{
SetSkill( SkillName.AnimalLore, 64.0, 100.0 );
SetSkill( SkillName.AnimalTaming, 90.0, 100.0 );
SetSkill( SkillName.Veterinary, 65.0, 88.0 );
}
示例4: BaseMonolith
public BaseMonolith( Town town, Faction faction ) : base( 0x1183 )
{
Movable = false;
Town = town;
Faction = faction;
m_Monoliths.Add( this );
}
示例5: Sigil
public Sigil( Town town )
: base(0x1869)
{
Movable = false;
Town = town;
m_Sigils.Add( this );
}
示例6: FactionReagentVendor
public FactionReagentVendor( Town town, Faction faction ) : base( town, faction, "the Reagent Man" )
{
SetSkill( SkillName.EvalInt, 65.0, 88.0 );
SetSkill( SkillName.Inscribe, 60.0, 83.0 );
SetSkill( SkillName.Magery, 64.0, 100.0 );
SetSkill( SkillName.Meditation, 60.0, 83.0 );
SetSkill( SkillName.MagicResist, 65.0, 88.0 );
SetSkill( SkillName.Wrestling, 36.0, 68.0 );
}
示例7: TownStone
public TownStone( Town town )
: base(0xEDE)
{
Movable = false;
Town = town;
// Blocked
this.Delete();
}
示例8: Construct
public BaseFactionVendor Construct(Town town, Faction faction)
{
try
{
return Activator.CreateInstance(this.m_Definition.Type, new object[] { town, faction }) as BaseFactionVendor;
}
catch
{
return null;
}
}
示例9: BaseFactionVendor
public BaseFactionVendor( Town town, Faction faction, string title ) : base( title )
{
Frozen = true;
CantWalk = true;
Female = false;
BodyValue = 400;
Name = NameList.RandomName( "male" );
RangeHome = 0;
m_Town = town;
m_Faction = faction;
Register();
}
示例10: BaseFactionVendor
public BaseFactionVendor(Town town, Faction faction, string title)
: base(title)
{
this.Frozen = true;
this.CantWalk = true;
this.Female = false;
this.BodyValue = 400;
this.Name = NameList.RandomName("male");
this.RangeHome = 0;
this.m_Town = town;
this.m_Faction = faction;
this.Register();
}
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
Town = Town.ReadReference( reader );
break;
}
}
}
示例12: Generate
public static void Generate( Town town )
{
Map facet = Faction.Facet;
TownDefinition def = town.Definition;
if ( !CheckExistance( def.Monolith, facet, typeof( TownMonolith ) ) )
{
TownMonolith mono = new TownMonolith( town );
mono.MoveToWorld( def.Monolith, facet );
mono.Sigil = new Sigil( town );
}
if ( !CheckExistance( def.TownStone, facet, typeof( TownStone ) ) )
new TownStone( town ).MoveToWorld( def.TownStone, facet );
}
示例13: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Town = Town.ReadReference( reader );
m_Faction = Faction.ReadReference( reader );
Register();
break;
}
}
Frozen = true;
}
示例14: TownState
public TownState( GenericReader reader )
{
int version = reader.ReadEncodedInt();
switch ( version )
{
case 3:
{
m_LastIncome = reader.ReadDateTime();
goto case 2;
}
case 2:
{
m_Tax = reader.ReadEncodedInt();
m_LastTaxChange = reader.ReadDateTime();
goto case 1;
}
case 1:
{
m_Silver = reader.ReadEncodedInt();
goto case 0;
}
case 0:
{
m_Town = Town.ReadReference( reader );
m_Owner = Faction.ReadReference( reader );
m_Sheriff = reader.ReadMobile();
m_Finance = reader.ReadMobile();
m_Town.State = this;
break;
}
}
}
示例15: Generate
public static void Generate(Town town)
{
Map facet = Faction.Facet;
TownDefinition def = town.Definition;
if (!CheckExistance(def.Monolith, facet, typeof(TownMonolith)))
{
TownMonolith mono = new TownMonolith(town);
mono.MoveToWorld(def.Monolith, facet);
mono.Sigil = new Sigil(town);
WeakEntityCollection.Add("factions", mono);
WeakEntityCollection.Add("factions", mono.Sigil);
}
if (!CheckExistance(def.TownStone, facet, typeof(TownStone)))
{
TownStone stone = new TownStone(town);
WeakEntityCollection.Add("factions", stone);
stone.MoveToWorld(def.TownStone, facet);
}
}