Exemplo 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;
 }
Exemplo 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;
        }
Exemplo n.º 3
0
 public ScriptLevelNpc(IRefObject Ref)
 {
     this.Ref = (GraalLevelNPC)Ref;
 }
Exemplo n.º 4
0
 public ScriptLevelNpc(Framework Server, IRefObject Ref)
     : base(Server)
 {
     this.Ref = (GraalLevelNPC)Ref;
 }