Example #1
0
        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);
            }
        }
Example #2
0
 public CommandSetUpgrade(GameObject gameObject, CommandSetUpgradeModuleData moduleData) : base(gameObject, moduleData)
 {
     _moduleData        = moduleData;
     _defaultCommandSet = gameObject.Definition.CommandSet;
 }
Example #3
0
 public CommandButton(CommandType commandType, LazyAssetReference <ObjectDefinition> definition)
 {
     Command     = commandType;
     Object      = definition;
     ButtonImage = definition.Value.ButtonImage;
 }