Example #1
0
 /// <summary>
 /// 返回一个专属 ActorData 的 Key 用以储存信息
 /// </summary>
 /// <param name="Key">Mod 内部使用的 Key 值,例如 1 2 3</param>
 /// <returns></returns>
 public int GetActorDataKey(int Key)
 {
     if (RuntimeConfig.ActorDataModKeys[GUID].TryGetValue(Key, out int key))
     {
         return(key);
     }
     else
     {
         return(RuntimeConfig.AllocateActorDataKey(GUID, Key));
     }
 }