mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 02:24:05 +09:00
Rectified heretic YY-MM-DD to standard YYYY-MM-DD
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
--[[
|
||||
Bootloader for Operation System
|
||||
|
||||
Created by minjaesong on 16-09-21
|
||||
Created by minjaesong on 2016-09-21
|
||||
]]
|
||||
|
||||
-- check directories
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--[[
|
||||
Must be loaded VERY FIRST!
|
||||
|
||||
Created by minjaesong on 16-09-13.
|
||||
Created by minjaesong on 2016-09-13.
|
||||
|
||||
Some codes were taken from OpenComputers, which is distributed under MIT
|
||||
--]]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
-- ComputerCraft API compatibility layer
|
||||
Usage: require("CCAPI")
|
||||
|
||||
Created by minjaesong on 16-09-16.
|
||||
Created by minjaesong on 2016-09-16.
|
||||
--]]
|
||||
|
||||
--------------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
--[[
|
||||
Created by minjaesong on 16-09-15.
|
||||
Created by minjaesong on 2016-09-15.
|
||||
--]]
|
||||
|
||||
-------------
|
||||
|
||||
@@ -31,7 +31,7 @@ import kotlin.collections.HashMap
|
||||
* @param avFixtureComputer : actor values for FixtureComputerBase
|
||||
*
|
||||
* @param term : terminal that is connected to the computer fixtures, null if not connected any.
|
||||
* Created by minjaesong on 16-09-10.
|
||||
* Created by minjaesong on 2016-09-10.
|
||||
*/
|
||||
class TerrarumComputer(peripheralSlots: Int) {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.util.*
|
||||
* .../computers/
|
||||
* media/hda/ -> .../computers/<uuid for the hda>/
|
||||
*
|
||||
* Created by minjaesong on 16-09-17.
|
||||
* Created by minjaesong on 2016-09-17.
|
||||
*
|
||||
*
|
||||
* NOTES:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.torvald.terrarum.virtualcomputer.luaapi
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-17.
|
||||
* Created by minjaesong on 2016-09-17.
|
||||
*/
|
||||
class FilesystemFactory {
|
||||
}
|
||||
@@ -19,7 +19,7 @@ import java.util.*
|
||||
* .../computers/
|
||||
* media/hda/ -> .../computers/<uuid for the hda>/
|
||||
*
|
||||
* Created by minjaesong on 16-09-17.
|
||||
* Created by minjaesong on 2016-09-17.
|
||||
*
|
||||
*
|
||||
* NOTES:
|
||||
|
||||
@@ -13,7 +13,7 @@ import org.luaj.vm2.*
|
||||
*
|
||||
* The "machine" refers to the computer fixture itself in the game world.
|
||||
*
|
||||
* Created by minjaesong on 16-09-19.
|
||||
* Created by minjaesong on 2016-09-19.
|
||||
*/
|
||||
internal class HostAccessProvider(globals: Globals, computer: TerrarumComputer) {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.luaj.vm2.lib.OneArgFunction
|
||||
import net.torvald.terrarum.virtualcomputer.computer.TerrarumComputer
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-25.
|
||||
* Created by minjaesong on 2016-09-25.
|
||||
*/
|
||||
class Input(globals: Globals, computer: TerrarumComputer) {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.luaj.vm2.lib.OneArgFunction
|
||||
*
|
||||
* Notes are tuned to A440, equal temperament. This is an ISO standard.
|
||||
*
|
||||
* Created by minjaesong on 16-09-27.
|
||||
* Created by minjaesong on 2016-09-27.
|
||||
*/
|
||||
class PcSpeakerDriver(val globals: Globals, host: TerrarumComputer) {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.security.SecureRandom
|
||||
/**
|
||||
* Hashes, CSPRNG, Base64
|
||||
*
|
||||
* Created by minjaesong on 16-09-15.
|
||||
* Created by minjaesong on 2016-09-15.
|
||||
*/
|
||||
internal class Security(globals: Globals) {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.nio.charset.Charset
|
||||
* Controls terminal as if it was a monitor
|
||||
* (not sending control sequences but just drives it directly)
|
||||
*
|
||||
* Created by minjaesong on 16-09-12.
|
||||
* Created by minjaesong on 2016-09-12.
|
||||
*/
|
||||
internal class Term(globals: Globals, term: Teletype) {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.luaj.vm2.LuaValue
|
||||
/**
|
||||
* Implementation of lua's os.date, to return world info of the game world.
|
||||
*
|
||||
* Created by minjaesong on 16-09-28.
|
||||
* Created by minjaesong on 2016-09-28.
|
||||
*/
|
||||
class WorldInformationProvider(globals: Globals) {
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.luaj.vm2.LuaTable
|
||||
import org.luaj.vm2.LuaValue
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-29.
|
||||
* Created by minjaesong on 2016-09-29.
|
||||
*/
|
||||
abstract class Peripheral(val tableName: String) {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.net.URL
|
||||
/**
|
||||
* Provides internet access.
|
||||
*
|
||||
* Created by minjaesong on 16-09-24.
|
||||
* Created by minjaesong on 2016-09-24.
|
||||
*/
|
||||
internal class PeripheralInternet(val host: TerrarumComputer)
|
||||
: Peripheral("internet"){
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.luaj.vm2.LuaValue
|
||||
* Virtual driver for 4-track squarewave PSG, which has no ability of changing a duty cycle
|
||||
* but has a volume control (you'll need some other tracker than MONOTONE)
|
||||
*
|
||||
* Created by minjaesong on 16-09-27.
|
||||
* Created by minjaesong on 2016-09-27.
|
||||
*/
|
||||
internal class PeripheralPSG(val host: TerrarumComputer)
|
||||
: Peripheral("psg") {
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.torvald.terrarum.virtualcomputer.terminal
|
||||
/**
|
||||
* Default text terminal.
|
||||
*
|
||||
* Created by minjaesong on 16-09-07.
|
||||
* Created by minjaesong on 2016-09-07.
|
||||
*/
|
||||
/*open class SimpleTextTerminal(
|
||||
phosphorColour: Color, override val width: Int, override val height: Int, private val host: TerrarumComputer,
|
||||
|
||||
@@ -3,7 +3,7 @@ package net.torvald.terrarum.virtualcomputer.terminal
|
||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-14.
|
||||
* Created by minjaesong on 2016-09-14.
|
||||
*/
|
||||
interface Teletype {
|
||||
val width: Int
|
||||
|
||||
@@ -6,7 +6,7 @@ import net.torvald.terrarum.blendNormal
|
||||
import java.util.*
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-15.
|
||||
* Created by minjaesong on 2016-09-15.
|
||||
*/
|
||||
/*class TeletypeTerminal : Teletype {
|
||||
override val width = 40
|
||||
|
||||
@@ -11,7 +11,7 @@ import net.torvald.terrarum.gameactors.Second
|
||||
*
|
||||
* Background color is fixed; text color is variable
|
||||
*
|
||||
* Created by minjaesong on 16-09-07.
|
||||
* Created by minjaesong on 2016-09-07.
|
||||
*/
|
||||
interface Terminal : Teletype {
|
||||
override val width: Int
|
||||
|
||||
@@ -4,7 +4,7 @@ import net.torvald.terrarum.virtualcomputer.computer.TerrarumComputer
|
||||
import java.io.InputStream
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-10.
|
||||
* Created by minjaesong on 2016-09-10.
|
||||
*/
|
||||
class TerminalInputStream(val host: TerrarumComputer) : InputStream() {
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import java.io.OutputStream
|
||||
import java.io.PrintStream
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-10.
|
||||
* Created by minjaesong on 2016-09-10.
|
||||
*/
|
||||
class TerminalPrintStream(val host: TerrarumComputer) : PrintStream(TerminalOutputStream(host))
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package net.torvald.terrarum.virtualcomputer.worldobject
|
||||
import java.util.*
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-08.
|
||||
* Created by minjaesong on 2016-09-08.
|
||||
*/
|
||||
object ComputerPartsCodex {
|
||||
val rams = HashMap<Int, Int>() // id, capacity in bytes (0 bytes - 8 GBytes)
|
||||
|
||||
@@ -10,7 +10,7 @@ import net.torvald.terrarum.virtualcomputer.worldobject.ui.UITextTerminal
|
||||
import java.util.*
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-08.
|
||||
* Created by minjaesong on 2016-09-08.
|
||||
*/
|
||||
class FixtureBasicTerminal(world: GameWorld, phosphor: Color) : FixtureBase(world) {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.security.SecureRandom
|
||||
import java.util.*
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-08.
|
||||
* Created by minjaesong on 2016-09-08.
|
||||
*/
|
||||
open class FixtureComputerBase(world: GameWorld) : FixtureBase(world) {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.torvald.terrarum.ui.UICanvas.Companion.OPENCLOSE_GENERIC
|
||||
import net.torvald.terrarum.virtualcomputer.terminal.Terminal
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-08.
|
||||
* Created by minjaesong on 2016-09-08.
|
||||
*/
|
||||
class UITextTerminal(val terminal: Terminal) : UICanvas() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user