Skip to content

Commit

Permalink
Refactor top-level package from vmf to vmflib
Browse files Browse the repository at this point in the history
  • Loading branch information
BHSPitMonkey committed Nov 23, 2013
1 parent b03c803 commit 5d8dc53
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions demo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python3 -i

from vmf import *
import vmf.tools as tools
from vmflib import *
import vmflib.tools as tools

m = vmf.ValveMap()

Expand Down
10 changes: 5 additions & 5 deletions examples/koth_vmflib_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
https://developer.valvesoftware.com/wiki/TF2/King_of_the_Hill
"""

from vmf import *
from vmf.types import Vertex, Output, Origin
from vmf.tools import Block
import vmf.games.source as source
import vmf.games.tf2 as tf2
from vmflib import *
from vmflib.types import Vertex, Output, Origin
from vmflib.tools import Block
import vmflib.games.source as source
import vmflib.games.tf2 as tf2

m = vmf.ValveMap()
la = source.LogicAuto()
Expand Down
6 changes: 3 additions & 3 deletions examples/maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
Note: In Ubuntu, you'll need to apt-get install python3-numpy for this example.
"""
from vmf import *
from vmf.types import Vertex
from vmf.tools import Block
from vmflib import *
from vmflib.types import Vertex
from vmflib.tools import Block
import numpy
from numpy.random import random_integers as rand

Expand Down
10 changes: 5 additions & 5 deletions examples/outdoor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
some terrain (a displacement map).
"""
from vmf import *
from vmf.types import Vertex
from vmf.tools import Block
from vmf.brush import DispInfo
import vmf.games.source as source
from vmflib import *
from vmflib.types import Vertex
from vmflib.tools import Block
from vmflib.brush import DispInfo
import vmflib.games.source as source

m = vmf.ValveMap()

Expand Down
1 change: 0 additions & 1 deletion examples/vmf

This file was deleted.

1 change: 1 addition & 0 deletions examples/vmflib
2 changes: 1 addition & 1 deletion examples/woodbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""

from vmf import *
from vmflib import *

m = vmf.ValveMap()

Expand Down
6 changes: 3 additions & 3 deletions examples/woodbox_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
creation of 3D block brushes. It's pretty awesome.
"""
from vmf import *
from vmf.types import Vertex
from vmf.tools import Block
from vmflib import *
from vmflib.types import Vertex
from vmflib.tools import Block

m = vmf.ValveMap()

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion vmf/brush.py → vmflib/brush.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from vmf import types, vmf
from vmflib import types, vmf


class Solid(vmf.VmfClass):
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions vmf/games/source.py → vmflib/games/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"""

from vmf.vmf import Entity
from vmf.types import Origin
from vmflib.vmf import Entity
from vmflib.types import Origin

class LightEnvironment(Entity):

Expand Down
4 changes: 2 additions & 2 deletions vmf/games/tf2.py → vmflib/games/tf2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"""

from vmf.vmf import Entity, Connections
from vmf.types import Bool, Origin, Output
from vmflib.vmf import Entity, Connections
from vmflib.types import Bool, Origin, Output

class GameRules(Entity):

Expand Down
2 changes: 1 addition & 1 deletion vmf/tools.py → vmflib/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

from vmf import brush, types
from vmflib import brush, types


class Block():
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion vmf/vmf.py → vmflib/vmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from vmf import types
from vmflib import types


###############################################################################
Expand Down

0 comments on commit 5d8dc53

Please sign in to comment.