public Image CreateFromMappedImageReference(LazyAssetReference <MappedImage> mappedImageReference) { var mappedImage = mappedImageReference?.Value; if (mappedImage != null) { return(new Image(mappedImage.Name, new MappedImageSource(mappedImage, _textureCache))); } else { return(null); } }
public CommandSetUpgrade(GameObject gameObject, CommandSetUpgradeModuleData moduleData) : base(gameObject, moduleData) { _moduleData = moduleData; _defaultCommandSet = gameObject.Definition.CommandSet; }
public CommandButton(CommandType commandType, LazyAssetReference <ObjectDefinition> definition) { Command = commandType; Object = definition; ButtonImage = definition.Value.ButtonImage; }