LoadMapFileCommand.cs 325 B

123456789101112131415
  1. using Blue;
  2. public class LoadMapFileCommand : ICommand
  3. {
  4. private string mFileName;
  5. public LoadMapFileCommand(string fileName)
  6. {
  7. mFileName = fileName;
  8. }
  9. public void OnExcute()
  10. {
  11. this.TriggerEvent<LoadMapFileEvent>(new LoadMapFileEvent(){fileName = mFileName});
  12. }
  13. }