tomjn / Shard

A reprogrammable AI framework for the Spring Engine
https://shard.tomjn.com
17 stars 13 forks source link

native CanBuild #136

Closed pandaro closed 7 years ago

pandaro commented 7 years ago

i'm in fixing on bug and fail under lua and native config here there are a function unit.type:CanBuild(unittype) that are not more available under the native environment. It's probably my mistake

pandaro commented 7 years ago

update on this: method CanBuild, that check if a unit can build another unit, require a subject that: in Lua environment is engineUnit:type() in native is engineUnit

pandaro commented 7 years ago
  1. Native CanBuild function mus be called using : engineUnit:CanBuild(unitTtype).
  2. Lua CanBuild accept 2 morph: engineUnit:CanBuild(unitTtype) and engineUnit.type:CanBuild(unitTtype)
pandaro commented 7 years ago

142 think is this the right way for now

pandaro commented 7 years ago

i think we can close this if no more trouble are on the air.