~ubuntu-branches/ubuntu/natty/spring/natty

« back to all changes in this revision

Viewing changes to installer/builddata/springcontent/gamedata/resources_map.lua

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-09-23 18:56:03 UTC
  • mfrom: (3.1.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20100923185603-st97s5chplo42y7w
Tags: 0.82.5.1+dfsg1-1ubuntu1
* Latest upstream version for online play
* debian/control: Replace (rather than conflict) spring-engine
  - spring-engine will be a dummy package (LP: #612905)
  - also set maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--------------------------------------------------------------------------------
2
 
--------------------------------------------------------------------------------
3
 
--
4
 
--
5
 
--
6
 
--------------------------------------------------------------------------------
7
 
--------------------------------------------------------------------------------
8
 
 
9
 
local TDF = VFS.Include('gamedata/parse_tdf.lua')
10
 
 
11
 
--------------------------------------------------------------------------------
12
 
--------------------------------------------------------------------------------
13
 
 
14
 
if (not VFS.FileExists('gamedata/resources_map.tdf')) then
15
 
  return false
16
 
end
17
 
 
18
 
local resources, err = TDF.Parse('gamedata/resources_map.tdf')
19
 
if (resources == nil) then
20
 
  error('Error parsing resources.tdf: ' .. err)
21
 
end
22
 
 
23
 
--------------------------------------------------------------------------------
24
 
 
25
 
return resources
26
 
 
27
 
--------------------------------------------------------------------------------
28
 
--------------------------------------------------------------------------------