示例#1
0
 private void Register(IShopPersonalityTrait trait, params int[] npcIds)
 {
     for (int index = 0; index < npcIds.Length; ++index)
     {
         this.Register(trait, npcIds[index]);
     }
 }
 private void Register(IShopPersonalityTrait trait, params int[] npcIds)
 {
     for (int i = 0; i < npcIds.Length; i++)
     {
         Register(trait, npcIds[i]);
     }
 }
示例#3
0
 private void Register(IShopPersonalityTrait trait, int npcId)
 {
     if (!this._personalityProfiles.ContainsKey(npcId))
     {
         this._personalityProfiles[npcId] = new PersonalityProfile();
     }
     this._personalityProfiles[npcId].ShopModifiers.Add(trait);
 }