Stores SaveState model objects with Core Data, and displays the available save states in SaveStatesViewController. Currently, tapping + button creates a new save state, while tapping a collection view cell loads the save state, regardless of whether Save State or Load State was selected from the pause menu.
57 lines
3.4 KiB
XML
57 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<model userDefinedModelVersionIdentifier="1.0" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="9525" systemVersion="15D21" minimumToolsVersion="Xcode 7.0">
|
|
<entity name="Game" representedClassName="Game" syncable="YES">
|
|
<attribute name="artworkURL" optional="YES" attributeType="Transformable" syncable="YES">
|
|
<userInfo>
|
|
<entry key="attributeValueClassName" value="NSURL"/>
|
|
</userInfo>
|
|
</attribute>
|
|
<attribute name="filename" attributeType="String" syncable="YES">
|
|
<userInfo>
|
|
<entry key="attributeValueClassName" value="NSURL"/>
|
|
</userInfo>
|
|
</attribute>
|
|
<attribute name="identifier" attributeType="String" syncable="YES"/>
|
|
<attribute name="name" attributeType="String" syncable="YES"/>
|
|
<attribute name="typeIdentifier" attributeType="String" syncable="YES"/>
|
|
<relationship name="gameCollections" toMany="YES" deletionRule="Nullify" destinationEntity="GameCollection" inverseName="games" inverseEntity="GameCollection" syncable="YES"/>
|
|
<relationship name="saveStates" toMany="YES" deletionRule="Cascade" destinationEntity="SaveState" inverseName="game" inverseEntity="SaveState" syncable="YES"/>
|
|
<uniquenessConstraints>
|
|
<uniquenessConstraint>
|
|
<constraint value="identifier"/>
|
|
</uniquenessConstraint>
|
|
</uniquenessConstraints>
|
|
</entity>
|
|
<entity name="GameCollection" representedClassName="GameCollection" syncable="YES">
|
|
<attribute name="identifier" attributeType="String" syncable="YES"/>
|
|
<attribute name="index" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
|
|
<relationship name="games" toMany="YES" deletionRule="Nullify" destinationEntity="Game" inverseName="gameCollections" inverseEntity="Game" syncable="YES"/>
|
|
<uniquenessConstraints>
|
|
<uniquenessConstraint>
|
|
<constraint value="identifier"/>
|
|
</uniquenessConstraint>
|
|
</uniquenessConstraints>
|
|
</entity>
|
|
<entity name="SaveState" representedClassName="SaveState" syncable="YES">
|
|
<attribute name="creationDate" attributeType="Date" syncable="YES"/>
|
|
<attribute name="filename" attributeType="String" syncable="YES">
|
|
<userInfo>
|
|
<entry key="attributeValueClassName" value="NSURL"/>
|
|
</userInfo>
|
|
</attribute>
|
|
<attribute name="identifier" attributeType="String" syncable="YES"/>
|
|
<attribute name="modifiedDate" attributeType="Date" syncable="YES"/>
|
|
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
|
|
<relationship name="game" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Game" inverseName="saveStates" inverseEntity="Game" syncable="YES"/>
|
|
<uniquenessConstraints>
|
|
<uniquenessConstraint>
|
|
<constraint value="identifier"/>
|
|
</uniquenessConstraint>
|
|
</uniquenessConstraints>
|
|
</entity>
|
|
<elements>
|
|
<element name="Game" positionX="-200" positionY="-72" width="128" height="148"/>
|
|
<element name="GameCollection" positionX="-198" positionY="-207" width="128" height="90"/>
|
|
<element name="SaveState" positionX="-198" positionY="113" width="128" height="135"/>
|
|
</elements>
|
|
</model> |