Optimize score variables.

This commit is contained in:
2022-11-19 22:08:56 +08:00
parent 20632d9b54
commit 2c4ac3191c
3 changed files with 78 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ namespace Cryville.Crtr {
public abstract class PropSrc {
int _type;
byte[] _buf = null;
public void Invalidate() { _buf = null; }
public virtual void Invalidate() { _buf = null; }
public void Get(out int type, out byte[] value) {
if (_buf == null) InternalGet(out _type, out _buf);
type = _type;