diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-08 19:09:18 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-08 19:09:18 -0400 |
| commit | 0916a769c3fea30887dd90237d17095b456a7a9e (patch) | |
| tree | 637de8218181b2bc634fe3728a440b7f2336490d /gamemode/shared | |
| parent | 847f856ea64c931d43af83f614803ffbdb1ecda0 (diff) | |
| download | artery-0916a769c3fea30887dd90237d17095b456a7a9e.tar.gz artery-0916a769c3fea30887dd90237d17095b456a7a9e.tar.bz2 artery-0916a769c3fea30887dd90237d17095b456a7a9e.zip | |
Removed some useless code
Diffstat (limited to 'gamemode/shared')
| -rw-r--r-- | gamemode/shared/sh_quests.lua | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/gamemode/shared/sh_quests.lua b/gamemode/shared/sh_quests.lua deleted file mode 100644 index ace050a..0000000 --- a/gamemode/shared/sh_quests.lua +++ /dev/null @@ -1,35 +0,0 @@ ---[[ - Details how quests are handeled -]] - -local pmeta = FindMetaTable("Player") - -if SERVER then - util.AddNetworkString("synchquest") -end - -function pmeta:SynchronizeQuest(name) - net.Start("synchquest") - net.WriteString(name) - net.WriteUInt(self.Quests[name],16) - net.Send(self) -end - -if CLIENT then - net.Receive("synchquest",function() - LocalPlayer().Quests = LocalPlayer().Quests or {} - print("Got quest status") - local questname,queststatus = net.ReadString(), net.ReadUInt(16) - LocalPlayer().Quests[questname] = queststatus - end) - - ART.Quests = ART.Quests or {} - function ART.RegisterQuest(tbl) - assert(ART.Quests[tbl.Name] == nil,"Tried to register two quests with the same name:" .. tbl.Name) - ART.Quests[tbl.Name] = tbl - end - - function ART.GetQuest(name) - return ART.Quests[name] - end -end |
