Adilol

Roy == fail

Sep 11th, 2011
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. using Snowlight.Config;
  5.  
  6. namespace Snowlight.Game.Pathfinding
  7. {
  8.     public static class PathfinderManager
  9.     {
  10.         public static Pathfinder CreatePathfinderInstance()
  11.         {
  12.             switch (ConfigManager.GetValue("pathfinder.mode").ToString().ToLower())
  13.             {
  14.                 default:
  15.                 case "simple":
  16.  
  17.                     return new SimplePathfinder();
  18.             }
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment