示例#1
0
 public static void MakeSureAllHandlerRegistered()
 {
     if (handlerReadFile == null)
     {
         handlerReadFile = DefaultReadFileProxy;
     }
     if (handlerFileExists == null)
     {
         handlerFileExists = DefaultFileExistsProxy;
     }
 }
示例#2
0
 //************************************************************************
 // Note:此函数只供客户端使用, by lixiaojiang
 //************************************************************************
 public static void RegisterReadFileHandler(delegate_ReadFile handler)
 {
     if (GlobalVariables.Instance.IsClient)
     {
         // Note:Client确保只拥有唯一的读取函数,即ScriptRuntime.Util.ReadFile(...), by lixiaojiang
         handlerReadFile = handler;
     }
     else
     {
         LogSystem.Debug("[Err] RegisterReadFileHandler only for Client.");
     }
 }
 public static void RegisterReadFileHandler(delegate_ReadFile handler)
 {
     handlerReadFile = handler;
 }
示例#4
0
 public static void RegisterReadFileHandler(delegate_ReadFile hReadFile, delegate_FileExists hExists)
 {
     handlerReadFile   = hReadFile;
     handlerFileExists = hExists;
 }