]> git.lizzy.rs Git - dragonblocks.git/commitdiff
Changed message.html in chat gamemode and moved the API documentation into doc/API
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sun, 26 Apr 2020 10:16:10 +0000 (12:16 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sun, 26 Apr 2020 10:16:10 +0000 (12:16 +0200)
README
doc/API [new file with mode: 0644]
game/chat/.gitignore [new file with mode: 0644]
game/chat/message.html

diff --git a/README b/README
index 0b8d0e7a71100bbfd6f06f1ef9cd57600e8d4744..6f78726468acda0d56bb57629f2f24a666a39da7 100755 (executable)
--- a/README
+++ b/README
@@ -7,85 +7,6 @@ Game:
 Thanks to the Dragonblocks Modding Team:
     - HimbeerserverDE
     - DerZombiiie
-API Documentation
-       Methods
-               dragonblocks.addFinalStep(function() : void) : void
-                       Execute the function after all mods are loaded, the player is spawned and the map is generated.
-               dragonblocks.chatMessage(message : String) : void
-                       Write something into the chatconsole. (alias for dragonblocks.chat.write)
-               dragonblocks.checkWorldExistance(worldname : String) : Boolean
-                       Check if a world exists or not
-               dragonblocks.checkWorldOwnership(worldname : String) : Boolean
-                       Check if a world is owned by the user
-               dragonblocks.checkWorldSpelling(worldname : String) : Boolean
-                       Check if a worldname is OK (e.g. does not contain special chacters)
-               dragonblocks.clearTimer(name : String, meta : Object) : void
-                       Clear a timer set using  dragonblocks.setTimer
-               dragonblocks.createItemstack(itemstring : String) : dragonblocks.Itemstack
-                       Create an Itemstack object and immediately parse the provided itemstring.
-               dragonblocks.error(errorstring : String) : void
-                       Throw an error. (errorstring is added to dragonblocks.backlog)
-               dragonblocks.finalize() : void
-                       Execute the final steps added using dragonblocks.addFinalStep. Not to be used!
-               dragonblocks.finishTimer(name : String, meta : Object) : void
-                       Immediately finish a timer set using dragonblocks.setTimer
-               dragonblocks.generateMap() : void
-                       Run the Mapgen selected in the mainmenu. Not to be used.
-               dragonblocks.getEmptyWorld() : Object
-                       Returns an Empty World save object. Not to be used.
-               dragonblocks.getModpath(modname : String) : String
-                       Returns the path of an Mod or Gamemod. Use this instead of e.g. "mods/" + modname + "/" + ...
-               dragonblocks.getNode(x, y) : dragonblocks.MapNode
-                       Returns the MapNode at x, y.
-               dragonblocks.getPixelManipulator(manip : Array) : dragonblocks.PixelManipulator
-                       Returns an Pixel Manipulator. Same as new dragonblocks.PixelManipulator(manip)
-               dragonblocks.getSavestring() : String
-                       Return the save string for the world
-               dragonblocks.getSound(filename : String) : String
-                       Return the path for an sound file. These files can be placed in the folders mods/*/sounds, game/*/sounds and sounds. If not found, it will just return the filename.
-               dragonblocks.getTexture(filename : String) : String
-                       Same as dragonblocks.getSound, exept for Textures and, if the file is found, it will surrond it with url() so you can do elem.style.background = dragonblocks.getTexture(...)
-               dragonblocks.getToken() : String
-                       Returns a unique string starting with #
-               dragonblocks.getVersion() : String
-                       Returns the version string (something like "Dragonblocks 3.0")
-               dragonblocks.isValidItemstring(itemstring : String)
-                       Check if an Itemstring is OK
-               dragonblocks.gui.toggleLayer() : void
-                       Toggle the Layer. 
-               dragonblocks.gui.openLayer() : void
-               dragonblocks.gui.showLayer() : void
-                       Open the Layer
-               dragonblocks.gui.closeLayer() : void
-               dragonblocks.gui.hideLayer() : void
-                       Hide the Layer
-               dragonblocks.gui.createBox(properties : Object) : Element
-                       Creates a dragonblocks.gui.Box(properties) and returns its the DOM Element.
-               
-       Objects
-               dragonblocks.availableMods : Array
-                       A list of all mods
-               dragonblocks.backlog : String
-                       Contains everything logged using dragonblocks.log
-               dragonblocks.chat : dragonblocks.Chat
-                       The dragonblocks chatconsole.
-               dragonblocks.chatcommands : Object
-                       Contains all registered chatcommands
-               dragonblocks.entities : Object
-                       Contains all registered entities
-               dragonblocks.finalSteps : Array
-                       Contains the final Steps added using dragonblocks.addFinalStep
-               dragonblocks.gamemods : Array
-                       Contains the gamemods
-               dragonblocks.groups : Object
-                       Contains all registered groups
-               dragonblocks.items : Object
-                       Contains all registered items
-               dragonblocks.itemstacks : Object
-                       Contains all created Itemstacks
-               dragonblocks.keyHandler: dragonblocks.KeyHandler
-                       The Keyhandler
-       Classes
-               
+       
 
                        
diff --git a/doc/API b/doc/API
new file mode 100644 (file)
index 0000000..fedd234
--- /dev/null
+++ b/doc/API
@@ -0,0 +1,81 @@
+TODO: This Documentation is unfull and partly deprecated!
+API Documentation
+       Methods
+               dragonblocks.addFinalStep(function() : void) : void
+                       Execute the function after all mods are loaded, the player is spawned and the map is generated.
+               dragonblocks.chatMessage(message : String) : void
+                       Write something into the chatconsole. (alias for dragonblocks.chat.write)
+               dragonblocks.checkWorldExistance(worldname : String) : Boolean
+                       Check if a world exists or not
+               dragonblocks.checkWorldOwnership(worldname : String) : Boolean
+                       Check if a world is owned by the user
+               dragonblocks.checkWorldSpelling(worldname : String) : Boolean
+                       Check if a worldname is OK (e.g. does not contain special chacters)
+               dragonblocks.clearTimer(name : String, meta : Object) : void
+                       Clear a timer set using  dragonblocks.setTimer
+               dragonblocks.createItemstack(itemstring : String) : dragonblocks.Itemstack
+                       Create an Itemstack object and immediately parse the provided itemstring.
+               dragonblocks.error(errorstring : String) : void
+                       Throw an error. (errorstring is added to dragonblocks.backlog)
+               dragonblocks.finalize() : void
+                       Execute the final steps added using dragonblocks.addFinalStep. Not to be used!
+               dragonblocks.finishTimer(name : String, meta : Object) : void
+                       Immediately finish a timer set using dragonblocks.setTimer
+               dragonblocks.generateMap() : void
+                       Run the Mapgen selected in the mainmenu. Not to be used.
+               dragonblocks.getEmptyWorld() : Object
+                       Returns an Empty World save object. Not to be used.
+               dragonblocks.getModpath(modname : String) : String
+                       Returns the path of an Mod or Gamemod. Use this instead of e.g. "mods/" + modname + "/" + ...
+               dragonblocks.getNode(x, y) : dragonblocks.MapNode
+                       Returns the MapNode at x, y.
+               dragonblocks.getPixelManipulator(manip : Array) : dragonblocks.PixelManipulator
+                       Returns an Pixel Manipulator. Same as new dragonblocks.PixelManipulator(manip)
+               dragonblocks.getSavestring() : String
+                       Return the save string for the world
+               dragonblocks.getSound(filename : String) : String
+                       Return the path for an sound file. These files can be placed in the folders mods/*/sounds, game/*/sounds and sounds. If not found, it will just return the filename.
+               dragonblocks.getTexture(filename : String) : String
+                       Same as dragonblocks.getSound, exept for Textures and, if the file is found, it will surrond it with url() so you can do elem.style.background = dragonblocks.getTexture(...)
+               dragonblocks.getToken() : String
+                       Returns a unique string starting with #
+               dragonblocks.getVersion() : String
+                       Returns the version string (something like "Dragonblocks 3.0")
+               dragonblocks.isValidItemstring(itemstring : String)
+                       Check if an Itemstring is OK
+               dragonblocks.gui.toggleLayer() : void
+                       Toggle the Layer. 
+               dragonblocks.gui.openLayer() : void
+               dragonblocks.gui.showLayer() : void
+                       Open the Layer
+               dragonblocks.gui.closeLayer() : void
+               dragonblocks.gui.hideLayer() : void
+                       Hide the Layer
+               dragonblocks.gui.createBox(properties : Object) : Element
+                       Creates a dragonblocks.gui.Box(properties) and returns its the DOM Element.
+               
+       Objects
+               dragonblocks.availableMods : Array
+                       A list of all mods
+               dragonblocks.backlog : String
+                       Contains everything logged using dragonblocks.log
+               dragonblocks.chat : dragonblocks.Chat
+                       The dragonblocks chatconsole.
+               dragonblocks.chatcommands : Object
+                       Contains all registered chatcommands
+               dragonblocks.entities : Object
+                       Contains all registered entities
+               dragonblocks.finalSteps : Array
+                       Contains the final Steps added using dragonblocks.addFinalStep
+               dragonblocks.gamemods : Array
+                       Contains the gamemods
+               dragonblocks.groups : Object
+                       Contains all registered groups
+               dragonblocks.items : Object
+                       Contains all registered items
+               dragonblocks.itemstacks : Object
+                       Contains all created Itemstacks
+               dragonblocks.keyHandler: dragonblocks.KeyHandler
+                       The Keyhandler
+       Classes
+        
diff --git a/game/chat/.gitignore b/game/chat/.gitignore
new file mode 100644 (file)
index 0000000..e69de29
index 06d1fe236fc5f658bd768cd087ce5ea78c4cf00c..c03ad581d15b137e3f5d1f415959bc9d5e789d9a 100755 (executable)
@@ -1 +1 @@
-user has left.
\ No newline at end of file
+[[Dragonblocks was Installed on the Server]]