Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
project rebrand
Browse files Browse the repository at this point in the history
  • Loading branch information
dskprt committed Aug 28, 2021
1 parent 69a89e8 commit 9fa9b7c
Show file tree
Hide file tree
Showing 1,918 changed files with 67,559 additions and 67,553 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Starfield

<p align="center">
<a href="../../"><img style="max-width: 2000px; max-height: 496px; width: auto; height: auto;" src="https://uwu.nya.pub/static/gh.png"></a><br>
<!--<a href="../../"><img style="max-width: 2000px; max-height: 496px; width: auto; height: auto;" src="https://uwu.nya.pub/static/gh.png"></a><br>!-->
<a href="../../search?l=c%23"><img src="https://img.shields.io/github/languages/top/dskprt/nylium?style=for-the-badge"></a>
<a href="LICENSE"><img src="https://img.shields.io/github/license/dskprt/nylium?style=for-the-badge"></a>
<a href="../../actions"><img src="https://img.shields.io/github/workflow/status/dskprt/nylium/.NET?style=for-the-badge"></a>
Expand All @@ -9,10 +11,10 @@
<br><br>
</p>

# Goals/Features
## Goals/Features
- [x] Cross-platform
- [x] Low memory usage
- [ ] Relatively small size (<5 MB)
- [x] Relatively small size (<10 MB)
- [ ] Close-to-vanilla experience
- [ ] Plugin API
- [ ] High customizability
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
using System;
using nylium.Utilities;

namespace nylium.Core.Block {

class BlockAttribute : Attribute {

public Identifier Id { get; }
public int ProtocolId { get; }

public ushort MinimumState { get; }
public ushort MaximumState { get; }
public ushort DefaultState { get; }

public BlockAttribute(string id, int protocolId,
ushort minState, ushort maxState, ushort defaultState) {

Id = new Identifier(id);
ProtocolId = protocolId;
MinimumState = minState;
MaximumState = maxState;
DefaultState = defaultState;
}
}
}
using System;
using Starfield.Utilities;

namespace Starfield.Core.Block {

class BlockAttribute : Attribute {

public Identifier Id { get; }
public int ProtocolId { get; }

public ushort MinimumState { get; }
public ushort MaximumState { get; }
public ushort DefaultState { get; }

public BlockAttribute(string id, int protocolId,
ushort minState, ushort maxState, ushort defaultState) {

Id = new Identifier(id);
ProtocolId = protocolId;
MinimumState = minState;
MaximumState = maxState;
DefaultState = defaultState;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
using IntervalTree;
using Ionic.Zlib;
using Jil;
using nylium.Utilities;
using nylium.Utilities.Collections;
using Starfield.Utilities;
using Starfield.Utilities.Collections;

namespace nylium.Core.Block {
namespace Starfield.Core.Block {

public abstract class BlockBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using nylium.Utilities.Collections;
using Starfield.Utilities.Collections;
using IntervalTree;
using nylium.Logging;
using nylium.Utilities;
using Starfield.Logging;
using Starfield.Utilities;

namespace nylium.Core.Block {
namespace Starfield.Core.Block {

public class BlockRepository {

Expand All @@ -22,7 +22,7 @@ public static void Initialize() {
Type[] ctorParams = { typeof(ushort) };

Assembly.GetExecutingAssembly().GetTypes()
.Where(t => t.Namespace == "nylium.Core.Block.Blocks")
.Where(t => t.Namespace == "Starfield.Core.Block.Blocks")
.ToList()
.ForEach(t => {
ConstructorInfo constructor = t.GetConstructor(ctorParams);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// FILE AUTOGENERATED. DO NOT MODIFY
using System;

namespace nylium.Core.Block.Blocks {
namespace Starfield.Core.Block.Blocks {

[Block("minecraft:acacia_button", 312, 6446, 6469, 6455)]
public class BlockAcaciaButton : BlockBase {
Expand Down Expand Up @@ -109,155 +109,155 @@ public override ushort State {

set {
if(value == 6446) {
Face = "floor";
Facing = "north";
Face = "floor";
Facing = "north";
Powered = true;
}

if(value == 6447) {
Face = "floor";
Facing = "north";
Face = "floor";
Facing = "north";
Powered = false;
}

if(value == 6448) {
Face = "floor";
Facing = "south";
Face = "floor";
Facing = "south";
Powered = true;
}

if(value == 6449) {
Face = "floor";
Facing = "south";
Face = "floor";
Facing = "south";
Powered = false;
}

if(value == 6450) {
Face = "floor";
Facing = "west";
Face = "floor";
Facing = "west";
Powered = true;
}

if(value == 6451) {
Face = "floor";
Facing = "west";
Face = "floor";
Facing = "west";
Powered = false;
}

if(value == 6452) {
Face = "floor";
Facing = "east";
Face = "floor";
Facing = "east";
Powered = true;
}

if(value == 6453) {
Face = "floor";
Facing = "east";
Face = "floor";
Facing = "east";
Powered = false;
}

if(value == 6454) {
Face = "wall";
Facing = "north";
Face = "wall";
Facing = "north";
Powered = true;
}

if(value == 6455) {
Face = "wall";
Facing = "north";
Face = "wall";
Facing = "north";
Powered = false;
}

if(value == 6456) {
Face = "wall";
Facing = "south";
Face = "wall";
Facing = "south";
Powered = true;
}

if(value == 6457) {
Face = "wall";
Facing = "south";
Face = "wall";
Facing = "south";
Powered = false;
}

if(value == 6458) {
Face = "wall";
Facing = "west";
Face = "wall";
Facing = "west";
Powered = true;
}

if(value == 6459) {
Face = "wall";
Facing = "west";
Face = "wall";
Facing = "west";
Powered = false;
}

if(value == 6460) {
Face = "wall";
Facing = "east";
Face = "wall";
Facing = "east";
Powered = true;
}

if(value == 6461) {
Face = "wall";
Facing = "east";
Face = "wall";
Facing = "east";
Powered = false;
}

if(value == 6462) {
Face = "ceiling";
Facing = "north";
Face = "ceiling";
Facing = "north";
Powered = true;
}

if(value == 6463) {
Face = "ceiling";
Facing = "north";
Face = "ceiling";
Facing = "north";
Powered = false;
}

if(value == 6464) {
Face = "ceiling";
Facing = "south";
Face = "ceiling";
Facing = "south";
Powered = true;
}

if(value == 6465) {
Face = "ceiling";
Facing = "south";
Face = "ceiling";
Facing = "south";
Powered = false;
}

if(value == 6466) {
Face = "ceiling";
Facing = "west";
Face = "ceiling";
Facing = "west";
Powered = true;
}

if(value == 6467) {
Face = "ceiling";
Facing = "west";
Face = "ceiling";
Facing = "west";
Powered = false;
}

if(value == 6468) {
Face = "ceiling";
Facing = "east";
Face = "ceiling";
Facing = "east";
Powered = true;
}

if(value == 6469) {
Face = "ceiling";
Facing = "east";
Face = "ceiling";
Facing = "east";
Powered = false;
}

}
}

public string Face { get; set; } = "wall";
public string Facing { get; set; } = "north";
public bool Powered { get; set; } = false;
public string Face { get; set; } = "wall";
public string Facing { get; set; } = "north";
public bool Powered { get; set; } = false;

public BlockAcaciaButton() {
State = DefaultState;
Expand All @@ -272,9 +272,9 @@ public BlockAcaciaButton(ushort state) : base(state) {
}

public BlockAcaciaButton(string face, string facing, bool powered) {
Face = face;
Facing = facing;
Powered = powered;
Face = face;
Facing = facing;
Powered = powered;
}
}
}
Loading

0 comments on commit 9fa9b7c

Please sign in to comment.