示例#1
0
        private static ScriptFormula FindScriptFormula(int powerSNO, TagKeyScript scriptTag)
        {
            TagMap tagmap = PowerTagHelper.FindTagMapWithKey(powerSNO, scriptTag);

            if (tagmap != null)
            {
                return(tagmap[scriptTag]);
            }
            else
            {
                return(null);
            }
        }
示例#2
0
        private TagMap _FindTagMapWithKey(TagKey key)
        {
            TagMap tagmap = PowerTagHelper.FindTagMapWithKey(PowerSNO, key);

            if (tagmap != null)
            {
                return(tagmap);
            }
            else
            {
                //Logger.Error("could not find tag key {0} in power {1}", key.ID, PowerSNO);
                return(null);
            }
        }