fix: Optimizes TextDefinition to eliminate allocations. Removes TextDefinition ctor. (#1221)
### BREAKING CHANGE ### The constructor for `TextDefinition` has been removed. Instead use `TextDefinition.Of()` or cast the integer/string to TextDefinition.
This commit is contained in:
parent
213b7025af
commit
910e06767b
50 changed files with 790 additions and 722 deletions
|
|
@ -17,17 +17,16 @@ namespace Server.Engines.MLQuests
|
|||
|
||||
public class MLQuest
|
||||
{
|
||||
public static readonly TextDefinition
|
||||
CompletionNoticeDefault =
|
||||
new(1072273); // You've completed a quest! Don't forget to collect your reward.
|
||||
// You've completed a quest! Don't forget to collect your reward.
|
||||
public static TextDefinition CompletionNoticeDefault = 1072273;
|
||||
|
||||
public static readonly TextDefinition CompletionNoticeShort = new(1046258); // Your quest is complete.
|
||||
public static TextDefinition CompletionNoticeShort = 1046258; // Your quest is complete.
|
||||
|
||||
public static readonly TextDefinition
|
||||
CompletionNoticeShortReturn = new(1073775); // Your quest is complete. Return for your reward.
|
||||
// Your quest is complete. Return for your reward.
|
||||
public static TextDefinition CompletionNoticeShortReturn = 1073775;
|
||||
|
||||
public static readonly TextDefinition
|
||||
CompletionNoticeCraft = new(1073967); // You obtained what you seek, now receive your reward.
|
||||
// You obtained what you seek, now receive your reward.
|
||||
public static TextDefinition CompletionNoticeCraft = 1073967;
|
||||
|
||||
public MLQuest()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue