Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Normand Erwan
VVVVVV_level_merger
Commits
92ddf7a4
Commit
92ddf7a4
authored
Jun 01, 2015
by
Orbmancer
Browse files
Merge branch 'master' of gitlab.utc.fr:enormand/VVVVVV_level_merger
parents
4573e907
7603656e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
model/Contents.class.php
0 → 100644
View file @
92ddf7a4
<?php
class
Contents
{
private
$mapwidth
;
private
$mapheight
;
private
$contents
;
public
function
__construct
()
{
$this
->
contents
=
null
;
$this
->
mapwidth
=
5
;
$this
->
mapheight
=
5
;
}
public
function
importXML
(
$string
)
{
$xml
=
simplexml_load_string
(
$string
);
$this
->
content
=
$xml
->
Data
->
contents
->
__toString
();
}
public
function
setContents
(
$contents
)
{
$this
->
contents
=
$contents
;
}
public
function
getContents
()
{
return
$this
->
contents
;
}
public
function
getTab
(
$x
,
$y
)
{
}
}
\ No newline at end of file
test.php
0 → 100644
View file @
92ddf7a4
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment