public void UnloadResource(PlayerEntity entity, LatestWeaponStateIndex index) { _playerLogic.UnloadResource(entity, index.GetCommonResourceIndex()); }
public void LoadResource(PlayerEntity entity, LatestWeaponStateIndex index, AssetInfo assetInfo, bool forceReload = false) { _playerLogic.LoadResource(entity, index.GetCommonResourceIndex(), assetInfo, forceReload); }
protected void SetLatestWeaponValue(LatestWeaponStateIndex type, int value) { var index = (int)type; _latestWeaponValue[index] = value; }
public static int GetCommonResourceIndex(this LatestWeaponStateIndex latestWeaponState) { return((int)EPlayerCommonResourceType.LatestWeaponStateStart + (int)latestWeaponState - 1); }
protected int GetLatestWeaponValue(LatestWeaponStateIndex type) { return(_latestWeaponValue[(int)type]); }