// constructor public World() { // create a list object of connections Users = new List <User>(); // Create a beat on the server Beat = new Timer(45000) { AutoReset = true, Enabled = true }; Beat.Elapsed += OnTimedEvent; // Generate the map WorldMap = new MapBuild(); // Initialize command processors PUC = new ProcessUnparameterizedCommand(WorldMap, Users); PPC = new ProcessParameterizedCommand(WorldMap, Users); foreach (NPC e in WorldMap.NPCs) { e.PopulateInventory(); } }
public ProcessParameterizedCommand(MapBuild wm, List <User> users) { Map = wm; Users = users; }
public static MB Map <MB, B>(MA ma, Func <A, B> f) => MapBuild <MB, B> .Default(ma, f);