API Docs for: 1.4.0
Show:

Kiwi.Files.DataLibrary Class

Module: Files
Parent Module: Kiwi

Holds a reference to all of the data Files (json, xml, e.t.c) that are accessible on the State that this DataLibrary is on.

Constructor

Kiwi.Files.DataLibrary

(
  • game
)
Kiwi.Files.DataLibrary

Parameters:

  • game Kiwi.Game

    The game that this DataLibrary belongs to.

Item Index

Properties

Methods

add

(
  • dataFile
)
public

Adds a new data file to the DataLibrary.

Parameters:

clear

() public

Resets the Data Library and makes it ready for the next state.

objType

() String public

The type of object that this is.

Returns:

String:

"DataLibrary"

rebuild

(
  • fileStore
  • state
)
public

Rebuild the library from a fileStore. Clears the library and repopulates it.

Parameters:

Properties

_game

Kiwi.Game private

The game that this DataLibrary belongs to.

data

Object public

Contains all of the data that this available.