Ejemplo n.º 1
0
 public GeneralProperties(ScriptContext context, Actor self)
     : base(context, self)
 {
     facing     = self.TraitOrDefault <IFacing>();
     autotarget = self.TraitOrDefault <AutoTarget>();
     scriptTags = self.TraitOrDefault <ScriptTags>();
 }
Ejemplo n.º 2
0
 public GeneralProperties(ScriptContext context, Actor self)
     : base(context, self)
 {
     facing     = self.TraitOrDefault <IFacing>();
     autotarget = self.TraitOrDefault <AutoTarget>();
     scriptTags = self.TraitOrDefault <ScriptTags>();
     tooltips   = self.TraitsImplementing <Tooltip>().ToArray();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// check if input script and langSys is considered a major language.
 /// </summary>
 /// <returns> true if it is a major language </returns>
 internal static bool Contains(ScriptTags script, LanguageTags langSys)
 {
     for (int i = 0; i < majorLanguages.Length; i++)
     {
         if (script == majorLanguages[i].Script &&
             (langSys == LanguageTags.Default || langSys == majorLanguages[i].LangSys))
         {
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 4
0
 public GeneralProperties(ScriptContext context, Actor self)
     : base(context, self)
 {
     facing = self.TraitOrDefault<IFacing>();
     autotarget = self.TraitOrDefault<AutoTarget>();
     scriptTags = self.TraitOrDefault<ScriptTags>();
 }
Ejemplo n.º 5
0
 internal MajorLanguageDesc(CultureInfo culture, ScriptTags script, LanguageTags langSys)
 {
     Culture = culture;
     Script  = script;
     LangSys = langSys;
 }