mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-14 17:46:03 +00:00
Private server
This commit is contained in:
commit
be7c837e33
668 changed files with 151282 additions and 0 deletions
58
dist/ba_data/python/bacommon/assets.py
vendored
Normal file
58
dist/ba_data/python/bacommon/assets.py
vendored
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# Released under the MIT License. See LICENSE for details.
|
||||
#
|
||||
"""Functionality related to cloud based assets."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
from enum import Enum
|
||||
|
||||
from efro import entity
|
||||
|
||||
if TYPE_CHECKING:
|
||||
pass
|
||||
|
||||
|
||||
class AssetPackageFlavor(Enum):
|
||||
"""Flavors for asset package outputs for different platforms/etc."""
|
||||
|
||||
# DXT3/DXT5 textures
|
||||
DESKTOP = 'desktop'
|
||||
|
||||
# ASTC textures
|
||||
MOBILE = 'mobile'
|
||||
|
||||
|
||||
class AssetType(Enum):
|
||||
"""Types for individual assets within a package."""
|
||||
TEXTURE = 'texture'
|
||||
CUBE_TEXTURE = 'cube_texture'
|
||||
SOUND = 'sound'
|
||||
DATA = 'data'
|
||||
MESH = 'mesh'
|
||||
COLLISION_MESH = 'collision_mesh'
|
||||
|
||||
|
||||
class AssetPackageFlavorManifestValue(entity.CompoundValue):
|
||||
"""A manifest of asset info for a specific flavor of an asset package."""
|
||||
assetfiles = entity.DictField('assetfiles', str, entity.StringValue())
|
||||
|
||||
|
||||
class AssetPackageFlavorManifest(entity.EntityMixin,
|
||||
AssetPackageFlavorManifestValue):
|
||||
"""A self contained AssetPackageFlavorManifestValue."""
|
||||
|
||||
|
||||
class AssetPackageBuildState(entity.Entity):
|
||||
"""Contains info about an in-progress asset cloud build."""
|
||||
|
||||
# Asset names still being built.
|
||||
in_progress_builds = entity.ListField('b', entity.StringValue())
|
||||
|
||||
# The initial number of assets needing to be built.
|
||||
initial_build_count = entity.Field('c', entity.IntValue())
|
||||
|
||||
# Build error string. If this is present, it should be presented
|
||||
# to the user and they should required to explicitly restart the build
|
||||
# in some way if desired.
|
||||
error = entity.Field('e', entity.OptionalStringValue())
|
||||
Loading…
Add table
Add a link
Reference in a new issue