コード例 #1
0
ファイル: CraftItem.cs プロジェクト: polytronicgr/dwarfcorp
 public void InitializeStrings()
 {
     DisplayName       = StringLibrary.TransformDataString(DisplayName, Name);
     PluralDisplayName = StringLibrary.TransformDataString(PluralDisplayName, DisplayName + "s"); // Default to appending an s if the plural name is not specified.
     ShortDisplayName  = StringLibrary.TransformDataString(ShortDisplayName, DisplayName);
     Verb         = StringLibrary.TransformDataString(Verb, StringLibrary.GetString("build"));
     PastTeseVerb = StringLibrary.TransformDataString(PastTeseVerb, StringLibrary.GetString("built"));
     CurrentVerb  = StringLibrary.TransformDataString(CurrentVerb, StringLibrary.GetString("building"));
     Description  = StringLibrary.TransformDataString(Description, Description);
 }