Skip to content

Commit

Permalink
make more things public
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Dec 4, 2016
1 parent e33d396 commit 405fe46
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions ClassicalSharp/Entities/Model/ModelCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ public ModelCache(Game window) {
#endif
public List<CachedModel> Models = new List<CachedModel>();
public List<CachedTexture> Textures = new List<CachedTexture>();
internal int vb;
internal VertexP3fT2fC4b[] vertices;

public int vb;
public VertexP3fT2fC4b[] vertices;

public void InitCache() {
vertices = new VertexP3fT2fC4b[24 * 12];
Expand Down
4 changes: 2 additions & 2 deletions ClassicalSharp/Entities/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public abstract partial class Player : Entity {

public string DisplayName, SkinName, SkinIdentifier;
public SkinType SkinType;
internal AnimatedComponent anim;
public AnimatedComponent anim;
internal ShadowComponent shadow;
internal float uScale = 1, vScale = 1;

Expand Down Expand Up @@ -57,7 +57,7 @@ void ParseScale(string scale) {
}

protected Texture nameTex;
protected internal int TextureId = -1, MobTextureId = -1;
public int TextureId = -1, MobTextureId = -1;

public override void Despawn() {
game.Graphics.DeleteTexture(ref TextureId);
Expand Down
1 change: 1 addition & 0 deletions ClassicalSharp/Network/IServerConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public abstract class IServerConnection {

public string ServerName;
public string ServerMotd;
public string AppName = Program.AppName;

/// <summary> Whether the network processor is currently connected to a server. </summary>
public bool Disconnected;
Expand Down
2 changes: 1 addition & 1 deletion ClassicalSharp/Network/Protocols/CPE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ void SendCpeExtInfoReply() {
int count = clientExts.Length;
if (!game.AllowCustomBlocks) count -= 2;

SendExtInfo(Program.AppName, count);
SendExtInfo(net.AppName, count);
for (int i = 0; i < clientExts.Length; i++) {
string name = clientExts[i];
int ver = 1;
Expand Down

0 comments on commit 405fe46

Please sign in to comment.