/// <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; }
public SaveIndex(GraalLevelNPC LevelNpc, int size) { this.LevelNpc = LevelNpc; SaveData = new byte[size]; for (int i = 0; i < size; i++) SaveData[i] = 0; }
public ScriptLevelNpc(IRefObject Ref) { this.Ref = (GraalLevelNPC)Ref; }
public ScriptLevelNpc(Framework Server, IRefObject Ref) : base(Server) { this.Ref = (GraalLevelNPC)Ref; }