예제 #1
0
        private void HandleCraftAction(CraftAction ca)
        {
            DateTime now = DateTime.Now;

            ChatManager.ServerMessageToAllLoc(EcoAnalyzerProtocol1.CraftMessage(now, ca), false, category: ChatCategory.Info);
        }
 protected virtual uint ProcessCraftAction(CraftAction action)
 {
     return(action.RecipeNetworkId);
 }
예제 #3
0
 public static string CraftMessage(DateTime timestamp, CraftAction a)
 {
     return($"Craft(timestamp={timestamp:u}, worldtime={a.TimeSeconds}, item={a.ItemTypeName}, user={a.Username})\n");
 }