mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 12:45:05 +00:00
Compare commits
5 Commits
v0.4.0-pre
...
v0.4.0-pre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab644c3dfa | ||
|
|
c6cdd8a815 | ||
|
|
d99df59d9b | ||
|
|
c5f8247543 | ||
|
|
72557c9d23 |
13
README.md
13
README.md
@@ -1,17 +1,22 @@
|
|||||||
<h1 align="center">Rojo</h1>
|
<div align="center">
|
||||||
|
<img src="assets/rojo-logo.png" alt="Rojo" height="150" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div> </div>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<a href="https://travis-ci.org/LPGhatguy/rojo">
|
<a href="https://travis-ci.org/LPGhatguy/rojo">
|
||||||
<img src="https://api.travis-ci.org/LPGhatguy/rojo.svg?branch=master" alt="Travis-CI Build Status" />
|
<img src="https://api.travis-ci.org/LPGhatguy/rojo.svg?branch=master" alt="Travis-CI Build Status" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div> </div>
|
<hr />
|
||||||
|
|
||||||
Rojo is a flexible multi-tool designed for creating robust Roblox projects. It's in early development, but is still useful for many projects.
|
**Rojo** is a flexible multi-tool designed for creating robust Roblox projects. It's in early development, but is still useful for many projects.
|
||||||
|
|
||||||
It's designed for power users who want to use the **best tools available** for building games, libraries, and plugins.
|
It's designed for power users who want to use the **best tools available** for building games, libraries, and plugins.
|
||||||
|
|
||||||
This is the main Rojo repository, containing the binary server component. For the source for the Roblox plugin, [see the rojo-plugin repository](https://github.com/LPGhatguy/rojo-plugin).
|
This is the main Rojo repository, containing the binary and project server component. For the source for the Roblox plugin, [see the rojo-plugin repository](https://github.com/LPGhatguy/rojo-plugin).
|
||||||
|
|
||||||
The master branches of both respositories should always pass all tests and be functional, but are not suitable for production use!
|
The master branches of both respositories should always pass all tests and be functional, but are not suitable for production use!
|
||||||
|
|
||||||
|
|||||||
BIN
assets/rojo-logo.png
Normal file
BIN
assets/rojo-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
@@ -48,7 +48,7 @@ impl Plugin for DefaultPlugin {
|
|||||||
|
|
||||||
TransformFileResult::Value(Some(RbxInstance {
|
TransformFileResult::Value(Some(RbxInstance {
|
||||||
name: vfs_item.name().clone(),
|
name: vfs_item.name().clone(),
|
||||||
class_name: "Folder".to_string(),
|
class_name: "*".to_string(),
|
||||||
children: rbx_children,
|
children: rbx_children,
|
||||||
properties: HashMap::new(),
|
properties: HashMap::new(),
|
||||||
route: Some(vfs_item.route().to_vec()),
|
route: Some(vfs_item.route().to_vec()),
|
||||||
|
|||||||
14
src/rbx.rs
14
src/rbx.rs
@@ -2,7 +2,7 @@ use std::collections::HashMap;
|
|||||||
|
|
||||||
/// Represents data about a Roblox instance
|
/// Represents data about a Roblox instance
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "PascalCase")]
|
||||||
pub struct RbxInstance {
|
pub struct RbxInstance {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub class_name: String,
|
pub class_name: String,
|
||||||
@@ -15,12 +15,20 @@ pub struct RbxInstance {
|
|||||||
|
|
||||||
/// Any kind value that can be used by Roblox
|
/// Any kind value that can be used by Roblox
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase", tag = "type")]
|
#[serde(rename_all = "PascalCase", tag = "Type")]
|
||||||
pub enum RbxValue {
|
pub enum RbxValue {
|
||||||
|
#[serde(rename_all = "PascalCase")]
|
||||||
String {
|
String {
|
||||||
value: String,
|
value: String,
|
||||||
},
|
},
|
||||||
|
#[serde(rename_all = "PascalCase")]
|
||||||
|
Bool {
|
||||||
|
value: bool,
|
||||||
|
},
|
||||||
|
#[serde(rename_all = "PascalCase")]
|
||||||
|
Number {
|
||||||
|
value: f64,
|
||||||
|
},
|
||||||
|
|
||||||
// TODO: Other primitives
|
|
||||||
// TODO: Compound types like Vector3
|
// TODO: Compound types like Vector3
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"partitions": {
|
"partitions": {
|
||||||
"src": {
|
"src": {
|
||||||
"path": "src",
|
"path": "src",
|
||||||
"target": "ReplicatedStorage.TestProject"
|
"target": "ReplicatedFirst"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,24 +1,24 @@
|
|||||||
{
|
{
|
||||||
"name": "hello",
|
"Name": "hello",
|
||||||
"className": "Model",
|
"ClassName": "Model",
|
||||||
"children": [
|
"Children": [
|
||||||
{
|
{
|
||||||
"name": "Some Part",
|
"Name": "Some Part",
|
||||||
"className": "Part",
|
"ClassName": "Part",
|
||||||
"children": [],
|
"Children": [],
|
||||||
"properties": {}
|
"Properties": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Some StringValue",
|
"Name": "Some StringValue",
|
||||||
"className": "StringValue",
|
"ClassName": "StringValue",
|
||||||
"children": [],
|
"Children": [],
|
||||||
"properties": {
|
"Properties": {
|
||||||
"Value": {
|
"Value": {
|
||||||
"type": "string",
|
"Type": "String",
|
||||||
"value": "Hello, world!"
|
"Value": "Hello, world!"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"properties": {}
|
"Properties": {}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user