Esempio n. 1
0
 /// <summary>
 /// Gets a npc from the level with the specified level id.
 /// </summary>
 internal GraalLevelNPC GetNPC(int Id)
 {
     GraalLevelNPC npc = null;
     if (!NpcList.TryGetValue(Id, out npc))
     {
         npc = new GraalLevelNPC(Server, this, Id);
         lock (Server.TimerLock)
         {
             NpcList[Id] = npc;
         }
     }
     return npc;
 }
Esempio n. 2
0
        public SaveIndex(GraalLevelNPC LevelNpc, int size)
        {
            this.LevelNpc = LevelNpc;

            SaveData = new byte[size];
            for (int i = 0; i < size; i++)
                SaveData[i] = 0;
        }
Esempio n. 3
0
 public ScriptLevelNpc(IRefObject Ref)
 {
     this.Ref = (GraalLevelNPC)Ref;
 }
Esempio n. 4
0
 public ScriptLevelNpc(Framework Server, IRefObject Ref)
     : base(Server)
 {
     this.Ref = (GraalLevelNPC)Ref;
 }