make more things public

This commit is contained in:
UnknownShadow200 2016-12-04 19:02:16 +11:00
parent e33d39685c
commit 405fe46544
4 changed files with 6 additions and 6 deletions

View File

@ -20,9 +20,8 @@ namespace ClassicalSharp.Model {
#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];

View File

@ -15,7 +15,7 @@ namespace ClassicalSharp.Entities {
public string DisplayName, SkinName, SkinIdentifier;
public SkinType SkinType;
internal AnimatedComponent anim;
public AnimatedComponent anim;
internal ShadowComponent shadow;
internal float uScale = 1, vScale = 1;
@ -57,7 +57,7 @@ namespace ClassicalSharp.Entities {
}
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);

View File

@ -37,6 +37,7 @@ namespace ClassicalSharp {
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;

View File

@ -396,7 +396,7 @@ namespace ClassicalSharp.Network.Protocols {
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;