Esempio n. 1
0
        /// <summary>
        /// 创建一个FString
        /// </summary>
        /// <param name="str">字符串</param>
        /// <returns>创建后的FString</returns>
        public static FString CreateString(String str)
        {
            if (null == str)
            {
                return(null);
            }
            HashID id = str.GetHashCode();

            return(new FString(str, id));
        }
Esempio n. 2
0
 private FString(String str, HashID id)
 {
     mName = str;
     mID   = id;
 }
Esempio n. 3
0
 /// <summary>
 /// 创建一个FString
 /// </summary>
 /// <param name="hash_id">哈希码</param>
 /// <returns>创建后的FString</returns>
 public static FString CreateString(HashID hash_id)
 {
     return(new FString(null, hash_id));
 }