示例#1
0
        public static SpiderView ConvertSpiderToView(SpiderModel result)
        {
            var spiderView = new SpiderView
            {
                Id               = result.Id,
                NamePl           = result.NamePl,
                NameEng          = result.NameEng,
                Size             = result.Size,
                Type             = result.Type,
                TemperatureMin   = result.TemperatureMin,
                TemperatureMax   = result.TemperatureMax,
                HumidityMin      = result.HumidityMin,
                HumidityMax      = result.HumidityMax,
                OriginPlace      = result.OriginPlace,
                PowerOfVenom     = result.PowerOfVenom,
                Aggressiveness   = result.Aggressiveness,
                Speed            = result.Speed,
                LengthOfLife     = result.LengthOfLife,
                CocoonSize       = result.CocoonSize,
                Description      = result.Description,
                Experience       = result.Experience,
                ShortDescription = result.ShortDescription
            };

            return(spiderView);
        }
示例#2
0
        public LuaMako(SpiderView host)
        {
            this.host = host;
            // Initialize runtime engine. For now we use JavaScriptEngine
            RuntimeMachine = host.Scripting;

            // Set JSPython to try as default
           // JSPython = true;
            
            // Raise create event handler
            if (this.Create!=null)
            {
                this.Create(this, new EventArgs());
            }
        }
示例#3
0
        public LuaMako(SpiderView host)
        {
            this.host = host;
            // Initialize runtime engine. For now we use JavaScriptEngine
            RuntimeMachine = host.Scripting;

            // Set JSPython to try as default
            // JSPython = true;

            // Raise create event handler
            if (this.Create != null)
            {
                this.Create(this, new EventArgs());
            }
        }
 public LuaInterpreter(SpiderView host)
 {
     this.host = host;
     this.lua = new LuaInterface.Lua();
     this.lua.DoString(Properties.Resources.helperlua); // Add helper methods
 }
示例#5
0
 public Liquid(SpiderView host)
 {
     this.Host = host;
 }
示例#6
0
 public LuaInterpreter(SpiderView host)
 {
     this.host = host;
     this.lua  = new LuaInterface.Lua();
     this.lua.DoString(Properties.Resources.helperlua); // Add helper methods
 }
示例#7
0
 public Liquid(SpiderView host)
 {
     this.Host = host;
 }