internal bool SerializeProtoActionReference <TDoc, TCursor>(IO.TagElementStream <TDoc, TCursor, string> s,
                                                                    string attributeName, ref IMegaloScriptProtoAction action)
            where TDoc : class
            where TCursor : class
        {
            bool streamed = s.StreamAttributeOptIdAsString(attributeName, ref action, this,
                                                           kProtoActionResolver, kProtoActionNameResolver, Predicates.IsNotNullOrEmpty);

            if (!streamed && s.IsReading)
            {
                action = null;
            }

            return(streamed);
        }
Exemple #2
0
        bool                                ParamSigIdsMatchIndex; // Params[x] == Params[sigId] is true for all params

        public MegaloScriptProtoParamsPostprocessState(TextWriter errorWriter, IMegaloScriptProtoAction action) : this()
        {
            mAction       = action;
            ParamsBySigId = new MegaloScriptProtoParam[action.Parameters.Count];
            mErrorWriter  = errorWriter;
        }
Exemple #3
0
        public MegaloScriptProtoActionParameters(IMegaloScriptProtoAction action)
        {
            mAction = action;

            mParams = new List <MegaloScriptProtoParam>();
        }